diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index 3ae784ff4e..10cc841077 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -2c60f902831f969f228cecd1f52a81ca240c433c \ No newline at end of file +4cd98860940da75ae8dfe7384cea405859800e9c \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index ade311e7c7..ccd8e578d9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2229 \ No newline at end of file +v2240 \ No newline at end of file diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs index 1164aa5109..891da3b06b 100644 --- a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponents.cs @@ -29,6 +29,15 @@ public class AccountSessionComponents : StripeEntity [STJS.JsonPropertyName("balances")] public AccountSessionComponentsBalances Balances { get; set; } + /// + /// Configuration for the Bills + /// embedded component. + /// + [JsonProperty("bills")] + [STJS.JsonPropertyName("bills")] + public AccountSessionComponentsBills Bills { get; set; } + [JsonProperty("capital_financing")] [STJS.JsonPropertyName("capital_financing")] public AccountSessionComponentsCapitalFinancing CapitalFinancing { get; set; } diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBills.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBills.cs new file mode 100644 index 0000000000..22e49e8540 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBills.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsBills : StripeEntity + { + /// + /// Whether the embedded component is enabled. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + [JsonProperty("features")] + [STJS.JsonPropertyName("features")] + public AccountSessionComponentsBillsFeatures Features { get; set; } + } +} diff --git a/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs new file mode 100644 index 0000000000..65e7ffa674 --- /dev/null +++ b/src/Stripe.net/Entities/AccountSessions/AccountSessionComponentsBillsFeatures.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class AccountSessionComponentsBillsFeatures : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs b/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs index c566bbcb6b..1a2bc8e276 100644 --- a/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs +++ b/src/Stripe.net/Entities/ApplicationFees/ApplicationFeeFeeSource.cs @@ -15,6 +15,13 @@ public class ApplicationFeeFeeSource : StripeEntity [STJS.JsonPropertyName("charge")] public string Charge { get; set; } + /// + /// PaymentRecord ID that created this application fee. + /// + [JsonProperty("payment_record")] + [STJS.JsonPropertyName("payment_record")] + public string PaymentRecord { get; set; } + /// /// Payout ID that created this application fee. /// @@ -36,12 +43,5 @@ public class ApplicationFeeFeeSource : StripeEntity [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } - - /// - /// PaymentRecord ID that created this application fee. - /// - [JsonProperty("payment_record")] - [STJS.JsonPropertyName("payment_record")] - public string PaymentRecord { get; set; } } } diff --git a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayments.cs b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayments.cs index 922d9590bb..c0813b1aca 100644 --- a/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayments.cs +++ b/src/Stripe.net/Entities/BalanceSettings/BalanceSettingsPayments.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -19,6 +20,13 @@ public class BalanceSettingsPayments : StripeEntity [STJS.JsonPropertyName("debit_negative_balances")] public bool? DebitNegativeBalances { get; set; } + /// + /// The default settlement currency for the account. + /// + [JsonProperty("default_settlement_currency")] + [STJS.JsonPropertyName("default_settlement_currency")] + public string DefaultSettlementCurrency { get; set; } + /// /// Settings specific to the account's payouts. /// @@ -26,6 +34,16 @@ public class BalanceSettingsPayments : StripeEntity [STJS.JsonPropertyName("payouts")] public BalanceSettingsPaymentsPayouts Payouts { get; set; } + /// + /// A hash of settlement currencies and their states. Each key is an ISO 4217 currency code, + /// and the value is one of enabled, disabled, or + /// restricted_by_application. + /// One of: disabled, enabled, or restricted_by_application. + /// + [JsonProperty("settlement_currencies")] + [STJS.JsonPropertyName("settlement_currencies")] + public Dictionary SettlementCurrencies { get; set; } + [JsonProperty("settlement_timing")] [STJS.JsonPropertyName("settlement_timing")] public BalanceSettingsPaymentsSettlementTiming SettlementTiming { get; set; } diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs index 02b3052203..ca28009c02 100644 --- a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCard.cs @@ -9,6 +9,10 @@ namespace Stripe [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ChargePaymentMethodDetailsCard : StripeEntity { + [JsonProperty("account_funding")] + [STJS.JsonPropertyName("account_funding")] + public ChargePaymentMethodDetailsCardAccountFunding AccountFunding { get; set; } + /// /// The authorized amount. /// diff --git a/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardAccountFunding.cs b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardAccountFunding.cs new file mode 100644 index 0000000000..589aa7ce8a --- /dev/null +++ b/src/Stripe.net/Entities/Charges/ChargePaymentMethodDetailsCardAccountFunding.cs @@ -0,0 +1,20 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class ChargePaymentMethodDetailsCardAccountFunding : StripeEntity + { + /// + /// The transaction type of the card transaction. One of account_funding or + /// purchase. + /// One of: account_funding, or purchase. + /// + [JsonProperty("processed_transaction_type")] + [STJS.JsonPropertyName("processed_transaction_type")] + public string ProcessedTransactionType { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs index ffaca787c6..8c2f9741ce 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/Session.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/Session.cs @@ -92,6 +92,10 @@ public class Session : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonPropertyName("approval_method")] public string ApprovalMethod { get; set; } + [JsonProperty("automatic_surcharge")] + [STJS.JsonPropertyName("automatic_surcharge")] + public SessionAutomaticSurcharge AutomaticSurcharge { get; set; } + [JsonProperty("automatic_tax")] [STJS.JsonPropertyName("automatic_tax")] public SessionAutomaticTax AutomaticTax { get; set; } @@ -740,6 +744,10 @@ public Subscription Subscription [STJS.JsonPropertyName("success_url")] public string SuccessUrl { get; set; } + [JsonProperty("surcharge_cost")] + [STJS.JsonPropertyName("surcharge_cost")] + public SessionSurchargeCost SurchargeCost { get; set; } + [JsonProperty("tax_id_collection")] [STJS.JsonPropertyName("tax_id_collection")] public SessionTaxIdCollection TaxIdCollection { get; set; } diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticSurcharge.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticSurcharge.cs new file mode 100644 index 0000000000..41d5125a4c --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionAutomaticSurcharge.cs @@ -0,0 +1,50 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionAutomaticSurcharge : StripeEntity + { + /// + /// Determines which amount serves as the basis for calculating the surcharge. + /// One of: total_after_tax, or total_before_tax. + /// + [JsonProperty("calculation_basis")] + [STJS.JsonPropertyName("calculation_basis")] + public string CalculationBasis { get; set; } + + /// + /// Indicates whether automatic surcharge is enabled for the session. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + /// + /// The surcharge provider used for this session. + /// One of: interpayments, or yeeld. + /// + [JsonProperty("provider")] + [STJS.JsonPropertyName("provider")] + public string Provider { get; set; } + + /// + /// The status of the most recent surcharge calculation for this session. + /// One of: complete, failed, or requires_input. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Specifies whether the surcharge is considered inclusive or exclusive of taxes. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] + [STJS.JsonPropertyName("tax_behavior")] + public string TaxBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs index 2415e54956..b0a3a24a1c 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptions.cs @@ -48,6 +48,10 @@ public class SessionPaymentMethodOptions : StripeEntity + { + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SessionPaymentMethodOptionsBizumMandateOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBizumMandateOptions.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBizumMandateOptions.cs new file mode 100644 index 0000000000..76b3d0db1b --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionPaymentMethodOptionsBizumMandateOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionPaymentMethodOptionsBizumMandateOptions : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionSurchargeCost.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionSurchargeCost.cs new file mode 100644 index 0000000000..138e9093b3 --- /dev/null +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionSurchargeCost.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class SessionSurchargeCost : StripeEntity + { + /// + /// Total surcharge cost before taxes are applied. + /// + [JsonProperty("amount_subtotal")] + [STJS.JsonPropertyName("amount_subtotal")] + public long AmountSubtotal { get; set; } + + /// + /// Total tax amount applied due to surcharging. If no tax was applied, defaults to 0. + /// + [JsonProperty("amount_tax")] + [STJS.JsonPropertyName("amount_tax")] + public long AmountTax { get; set; } + + /// + /// Total surcharge cost after taxes are applied. + /// + [JsonProperty("amount_total")] + [STJS.JsonPropertyName("amount_total")] + public long AmountTotal { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetails.cs b/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetails.cs index fc0da8ccf7..17293657c0 100644 --- a/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetails.cs +++ b/src/Stripe.net/Entities/Checkout/Sessions/SessionTotalDetails.cs @@ -22,6 +22,13 @@ public class SessionTotalDetails : StripeEntity [STJS.JsonPropertyName("amount_shipping")] public long? AmountShipping { get; set; } + /// + /// The surcharge amount that was applied to the Checkout Session. + /// + [JsonProperty("amount_surcharge")] + [STJS.JsonPropertyName("amount_surcharge")] + public long AmountSurcharge { get; set; } + /// /// This is the sum of all the tax amounts. /// diff --git a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs index d5dacc8b78..556bf2df83 100644 --- a/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs +++ b/src/Stripe.net/Entities/DelegatedCheckout/RequestedSessions/RequestedSessionSellerDetails.cs @@ -9,6 +9,14 @@ namespace Stripe.DelegatedCheckout [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class RequestedSessionSellerDetails : StripeEntity { + /// + /// The card brands supported by the seller. + /// One of: american_express, mastercard, or visa. + /// + [JsonProperty("card_brands")] + [STJS.JsonPropertyName("card_brands")] + public List CardBrands { get; set; } + /// /// The marketplace seller details. /// @@ -51,6 +59,14 @@ public Profile NetworkProfile internal ExpandableField InternalNetworkProfile { get; set; } #endregion + /// + /// The payment method types supported by the seller. + /// One of: affirm, card, or klarna. + /// + [JsonProperty("payment_method_types")] + [STJS.JsonPropertyName("payment_method_types")] + public List PaymentMethodTypes { get; set; } + /// /// The URL to the seller's privacy notice. /// @@ -78,21 +94,5 @@ public Profile NetworkProfile [JsonProperty("terms_of_service_url")] [STJS.JsonPropertyName("terms_of_service_url")] public string TermsOfServiceUrl { get; set; } - - /// - /// The card brands supported by the seller. - /// One of: american_express, mastercard, or visa. - /// - [JsonProperty("card_brands")] - [STJS.JsonPropertyName("card_brands")] - public List CardBrands { get; set; } - - /// - /// The payment method types supported by the seller. - /// One of: affirm, card, or klarna. - /// - [JsonProperty("payment_method_types")] - [STJS.JsonPropertyName("payment_method_types")] - public List PaymentMethodTypes { get; set; } } } diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs index 48fa915dcb..b75946316a 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReport.cs @@ -107,7 +107,7 @@ public class VerificationReport : StripeEntity, IHasId, IHas /// /// Type of report. - /// One of: document, id_number, or verification_flow. + /// One of: document, email, id_number, or verification_flow. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmail.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmail.cs index 86843d5ced..bedd13f2e1 100644 --- a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmail.cs +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmail.cs @@ -8,6 +8,13 @@ namespace Stripe.Identity [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class VerificationReportEmail : StripeEntity { + /// + /// Additional email verification details. + /// + [JsonProperty("details")] + [STJS.JsonPropertyName("details")] + public VerificationReportEmailDetails Details { get; set; } + /// /// Email to be verified. /// diff --git a/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmailDetails.cs b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmailDetails.cs new file mode 100644 index 0000000000..fcfb9460c0 --- /dev/null +++ b/src/Stripe.net/Entities/Identity/VerificationReports/VerificationReportEmailDetails.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.Identity +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class VerificationReportEmailDetails : StripeEntity + { + /// + /// Number of days from the time when the email domain was first observed to the time of + /// verification. + /// + [JsonProperty("days_since_domain_creation")] + [STJS.JsonPropertyName("days_since_domain_creation")] + public decimal DaysSinceDomainCreation { get; set; } + + /// + /// Number of days from the time when the email address was first observed to the time of + /// verification. + /// + [JsonProperty("days_since_ownership_started")] + [STJS.JsonPropertyName("days_since_ownership_started")] + public decimal DaysSinceOwnershipStarted { get; set; } + + /// + /// Two-letter ISO 3166-1 alpha-2 country code of the email domain's country. + /// + [JsonProperty("domain_country")] + [STJS.JsonPropertyName("domain_country")] + public string DomainCountry { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs index 5898765d74..123cb65a62 100644 --- a/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs +++ b/src/Stripe.net/Entities/Identity/VerificationSessions/VerificationSession.cs @@ -188,7 +188,7 @@ public VerificationReport LastVerificationReport /// /// The type of verification /// check to be performed. - /// One of: document, id_number, or verification_flow. + /// One of: document, email, id_number, or verification_flow. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentScheduleDetails.cs b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentScheduleDetails.cs index 278df75bdb..fb8076eeb7 100644 --- a/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentScheduleDetails.cs +++ b/src/Stripe.net/Entities/InvoiceItems/InvoiceItemParentScheduleDetails.cs @@ -14,5 +14,12 @@ public class InvoiceItemParentScheduleDetails : StripeEntity + /// The subscription associated with this schedule. + /// + [JsonProperty("subscription")] + [STJS.JsonPropertyName("subscription")] + public string Subscription { get; set; } } } diff --git a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs index 4c0804054e..bd0c2ae85d 100644 --- a/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Invoices/InvoicePaymentSettingsPaymentMethodOptions.cs @@ -24,6 +24,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by bizum, this sub-hash contains details about the Bizum payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public InvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. @@ -32,6 +40,14 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity + /// If paying by check_scan, this sub-hash contains details about the Check Scan + /// payment method options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("check_scan")] + [STJS.JsonPropertyName("check_scan")] + public InvoicePaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } + /// /// If paying by customer_balance, this sub-hash contains details about the Bank /// transfer payment method options to pass to the invoice’s PaymentIntent. @@ -95,21 +111,5 @@ public class InvoicePaymentSettingsPaymentMethodOptions : StripeEntity - /// If paying by bizum, this sub-hash contains details about the Bizum payment method - /// options to pass to the invoice’s PaymentIntent. - /// - [JsonProperty("bizum")] - [STJS.JsonPropertyName("bizum")] - public InvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } - - /// - /// If paying by check_scan, this sub-hash contains details about the Check Scan - /// payment method options to pass to the invoice’s PaymentIntent. - /// - [JsonProperty("check_scan")] - [STJS.JsonPropertyName("check_scan")] - public InvoicePaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs index 83ab090e62..0be94cf59d 100644 --- a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetails.cs @@ -35,6 +35,13 @@ public class PaymentIntentPaymentDetails : StripeEntity + /// Fleet data for this PaymentIntent. + /// + [JsonProperty("fleet_data")] + [STJS.JsonPropertyName("fleet_data")] + public List FleetData { get; set; } + [JsonProperty("flight_data")] [STJS.JsonPropertyName("flight_data")] public List FlightData { get; set; } @@ -43,6 +50,10 @@ public class PaymentIntentPaymentDetails : StripeEntity LodgingData { get; set; } + [JsonProperty("money_services")] + [STJS.JsonPropertyName("money_services")] + public PaymentIntentPaymentDetailsMoneyServices MoneyServices { get; set; } + /// /// A unique value assigned by the business to identify the transaction. Required for L2 and /// L3 rates. @@ -58,12 +69,5 @@ public class PaymentIntentPaymentDetails : StripeEntity - /// Fleet data for this PaymentIntent. - /// - [JsonProperty("fleet_data")] - [STJS.JsonPropertyName("fleet_data")] - public List FleetData { get; set; } } } diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs new file mode 100644 index 0000000000..669db23cdf --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServices.cs @@ -0,0 +1,22 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServices : StripeEntity + { + [JsonProperty("account_funding")] + [STJS.JsonPropertyName("account_funding")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFunding AccountFunding { get; set; } + + /// + /// The type of money services transaction. + /// + [JsonProperty("transaction_type")] + [STJS.JsonPropertyName("transaction_type")] + public string TransactionType { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs new file mode 100644 index 0000000000..218227c023 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFunding.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFunding : StripeEntity + { + /// + /// ID of the Account representing the beneficiary in this account funding transaction. + /// + [JsonProperty("beneficiary_account")] + [STJS.JsonPropertyName("beneficiary_account")] + public string BeneficiaryAccount { get; set; } + + [JsonProperty("beneficiary_details")] + [STJS.JsonPropertyName("beneficiary_details")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails BeneficiaryDetails { get; set; } + + /// + /// ID of the Account representing the sender in this account funding transaction. + /// + [JsonProperty("sender_account")] + [STJS.JsonPropertyName("sender_account")] + public string SenderAccount { get; set; } + + [JsonProperty("sender_details")] + [STJS.JsonPropertyName("sender_details")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetails SenderDetails { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails.cs new file mode 100644 index 0000000000..7c74ceb8d9 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetails : StripeEntity + { + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress Address { get; set; } + + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress.cs new file mode 100644 index 0000000000..1ac5547e69 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth.cs new file mode 100644 index 0000000000..0c7d4b8f0e --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingBeneficiaryDetailsDateOfBirth : StripeEntity + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long Year { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetails.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetails.cs new file mode 100644 index 0000000000..7968ff70ce --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetails.cs @@ -0,0 +1,40 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetails : StripeEntity + { + [JsonProperty("address")] + [STJS.JsonPropertyName("address")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress Address { get; set; } + + [JsonProperty("date_of_birth")] + [STJS.JsonPropertyName("date_of_birth")] + public PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth DateOfBirth { get; set; } + + /// + /// Email address. + /// + [JsonProperty("email")] + [STJS.JsonPropertyName("email")] + public string Email { get; set; } + + /// + /// Full name. + /// + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + /// + /// Phone number. + /// + [JsonProperty("phone")] + [STJS.JsonPropertyName("phone")] + public string Phone { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress.cs new file mode 100644 index 0000000000..52e8a47c09 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress.cs @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsAddress : StripeEntity + { + /// + /// City, district, suburb, town, or village. + /// + [JsonProperty("city")] + [STJS.JsonPropertyName("city")] + public string City { get; set; } + + /// + /// Two-letter country code (ISO + /// 3166-1 alpha-2). + /// + [JsonProperty("country")] + [STJS.JsonPropertyName("country")] + public string Country { get; set; } + + /// + /// Address line 1 (e.g., street, PO Box, or company name). + /// + [JsonProperty("line1")] + [STJS.JsonPropertyName("line1")] + public string Line1 { get; set; } + + /// + /// Address line 2 (e.g., apartment, suite, unit, or building). + /// + [JsonProperty("line2")] + [STJS.JsonPropertyName("line2")] + public string Line2 { get; set; } + + /// + /// ZIP or postal code. + /// + [JsonProperty("postal_code")] + [STJS.JsonPropertyName("postal_code")] + public string PostalCode { get; set; } + + /// + /// State, county, province, or region. + /// + [JsonProperty("state")] + [STJS.JsonPropertyName("state")] + public string State { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth.cs b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth.cs new file mode 100644 index 0000000000..862051656b --- /dev/null +++ b/src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentIntentPaymentDetailsMoneyServicesAccountFundingSenderDetailsDateOfBirth : StripeEntity + { + /// + /// Day of birth, between 1 and 31. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public long Day { get; set; } + + /// + /// Month of birth, between 1 and 12. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public long Month { get; set; } + + /// + /// Four-digit year of birth. + /// + [JsonProperty("year")] + [STJS.JsonPropertyName("year")] + public long Year { get; set; } + } +} diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs index d53f92083a..50713b3390 100644 --- a/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLink.cs @@ -105,6 +105,10 @@ public Application Application [STJS.JsonPropertyName("application_fee_percent")] public decimal? ApplicationFeePercent { get; set; } + [JsonProperty("automatic_surcharge")] + [STJS.JsonPropertyName("automatic_surcharge")] + public PaymentLinkAutomaticSurcharge AutomaticSurcharge { get; set; } + [JsonProperty("automatic_tax")] [STJS.JsonPropertyName("automatic_tax")] public PaymentLinkAutomaticTax AutomaticTax { get; set; } diff --git a/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticSurcharge.cs b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticSurcharge.cs new file mode 100644 index 0000000000..484b1bbce7 --- /dev/null +++ b/src/Stripe.net/Entities/PaymentLinks/PaymentLinkAutomaticSurcharge.cs @@ -0,0 +1,42 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class PaymentLinkAutomaticSurcharge : StripeEntity + { + /// + /// Determines which amount serves as the basis for calculating the surcharge. + /// One of: total_after_tax, or total_before_tax. + /// + [JsonProperty("calculation_basis")] + [STJS.JsonPropertyName("calculation_basis")] + public string CalculationBasis { get; set; } + + /// + /// Indicates whether automatic surcharge is enabled for the payment link. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool Enabled { get; set; } + + /// + /// The surcharge provider used for this payment link. + /// One of: interpayments, or yeeld. + /// + [JsonProperty("provider")] + [STJS.JsonPropertyName("provider")] + public string Provider { get; set; } + + /// + /// Specifies whether the surcharge is considered inclusive or exclusive of taxes. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] + [STJS.JsonPropertyName("tax_behavior")] + public string TaxBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Entities/Plans/Plan.cs b/src/Stripe.net/Entities/Plans/Plan.cs index 700778fed4..559c2d5ea9 100644 --- a/src/Stripe.net/Entities/Plans/Plan.cs +++ b/src/Stripe.net/Entities/Plans/Plan.cs @@ -108,14 +108,6 @@ public class Plan : StripeEntity, IHasId, IHasMetadata, IHasObject [STJS.JsonIgnore(Condition = STJS.JsonIgnoreCondition.WhenWritingNull)] public bool? Deleted { get; set; } - /// - /// A custom identifier for this price, such as a SKU number or product code, that can be - /// used to reference records from external systems. - /// - [JsonProperty("external_reference")] - [STJS.JsonPropertyName("external_reference")] - public string ExternalReference { get; set; } - /// /// The frequency at which a subscription is billed. One of day, week, /// month or year. diff --git a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs index 09e91f33d5..d106f52525 100644 --- a/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/QuotePreviewInvoices/QuotePreviewInvoicePaymentSettingsPaymentMethodOptions.cs @@ -24,6 +24,14 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti [STJS.JsonPropertyName("bancontact")] public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBancontact Bancontact { get; set; } + /// + /// If paying by bizum, this sub-hash contains details about the Bizum payment method + /// options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// If paying by card, this sub-hash contains details about the Card payment method /// options to pass to the invoice’s PaymentIntent. @@ -32,6 +40,14 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti [STJS.JsonPropertyName("card")] public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCard Card { get; set; } + /// + /// If paying by check_scan, this sub-hash contains details about the Check Scan + /// payment method options to pass to the invoice’s PaymentIntent. + /// + [JsonProperty("check_scan")] + [STJS.JsonPropertyName("check_scan")] + public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } + /// /// If paying by customer_balance, this sub-hash contains details about the Bank /// transfer payment method options to pass to the invoice’s PaymentIntent. @@ -95,21 +111,5 @@ public class QuotePreviewInvoicePaymentSettingsPaymentMethodOptions : StripeEnti [JsonProperty("us_bank_account")] [STJS.JsonPropertyName("us_bank_account")] public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsUsBankAccount UsBankAccount { get; set; } - - /// - /// If paying by bizum, this sub-hash contains details about the Bizum payment method - /// options to pass to the invoice’s PaymentIntent. - /// - [JsonProperty("bizum")] - [STJS.JsonPropertyName("bizum")] - public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } - - /// - /// If paying by check_scan, this sub-hash contains details about the Check Scan - /// payment method options to pass to the invoice’s PaymentIntent. - /// - [JsonProperty("check_scan")] - [STJS.JsonPropertyName("check_scan")] - public QuotePreviewInvoicePaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } } } diff --git a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs index 5068d827cd..0a9ef2f746 100644 --- a/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs +++ b/src/Stripe.net/Entities/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetails.cs @@ -8,6 +8,14 @@ namespace Stripe.Radar [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PaymentEvaluationClientDeviceMetadataDetails : StripeEntity { + /// + /// Direct client device attributes such as IP address and user agent. Use this as an + /// alternative to radar_session when a Radar Session isn't available. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public PaymentEvaluationClientDeviceMetadataDetailsData Data { get; set; } + /// /// ID for the Radar Session associated with the payment evaluation. A Radar Session is a snapshot of @@ -17,13 +25,5 @@ public class PaymentEvaluationClientDeviceMetadataDetails : StripeEntity - /// Direct client device attributes such as IP address and user agent. Use this as an - /// alternative to radar_session when a Radar Session isn't available. - /// - [JsonProperty("data")] - [STJS.JsonPropertyName("data")] - public PaymentEvaluationClientDeviceMetadataDetailsData Data { get; set; } } } diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsights.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsights.cs index f41fc9ca85..cad23f6b85 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsights.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsights.cs @@ -9,35 +9,35 @@ namespace Stripe.SharedPayment public class GrantedTokenRiskDetailsInsights : StripeEntity { /// - /// Bot risk insight (score: Float, recommended_action). + /// Bot risk insight. /// [JsonProperty("bot")] [STJS.JsonPropertyName("bot")] public GrantedTokenRiskDetailsInsightsBot Bot { get; set; } /// - /// Card issuer decline risk insight (score: Float, recommended_action). + /// Card issuer decline risk insight. /// [JsonProperty("card_issuer_decline")] [STJS.JsonPropertyName("card_issuer_decline")] public GrantedTokenRiskDetailsInsightsCardIssuerDecline CardIssuerDecline { get; set; } /// - /// Card testing risk insight (score: Float, recommended_action). + /// Card testing risk insight. /// [JsonProperty("card_testing")] [STJS.JsonPropertyName("card_testing")] public GrantedTokenRiskDetailsInsightsCardTesting CardTesting { get; set; } /// - /// Fraudulent dispute risk insight (score: Integer, recommended_action). + /// Fraudulent dispute risk insight. /// [JsonProperty("fraudulent_dispute")] [STJS.JsonPropertyName("fraudulent_dispute")] public GrantedTokenRiskDetailsInsightsFraudulentDispute FraudulentDispute { get; set; } /// - /// Stolen card risk insight (score: Integer, recommended_action). + /// Stolen card risk insight. /// [JsonProperty("stolen_card")] [STJS.JsonPropertyName("stolen_card")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsBot.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsBot.cs index 8b0dc0f918..3f4d71e1b7 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsBot.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsBot.cs @@ -16,7 +16,7 @@ public class GrantedTokenRiskDetailsInsightsBot : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardIssuerDecline.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardIssuerDecline.cs index 264d543d24..ee34345822 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardIssuerDecline.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardIssuerDecline.cs @@ -16,7 +16,7 @@ public class GrantedTokenRiskDetailsInsightsCardIssuerDecline : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardTesting.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardTesting.cs index 92cc794bd5..d81b9f895e 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardTesting.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsCardTesting.cs @@ -16,7 +16,7 @@ public class GrantedTokenRiskDetailsInsightsCardTesting : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsFraudulentDispute.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsFraudulentDispute.cs index fb6454e569..c9e3004048 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsFraudulentDispute.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsFraudulentDispute.cs @@ -16,7 +16,7 @@ public class GrantedTokenRiskDetailsInsightsFraudulentDispute : StripeEntity - /// Risk score for this insight (integer). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsStolenCard.cs b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsStolenCard.cs index 91ca6b3791..f5540e4a69 100644 --- a/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsStolenCard.cs +++ b/src/Stripe.net/Entities/SharedPayment/GrantedTokens/GrantedTokenRiskDetailsInsightsStolenCard.cs @@ -16,7 +16,7 @@ public class GrantedTokenRiskDetailsInsightsStolenCard : StripeEntity - /// Risk score for this insight (integer). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs index c1c2ba66b8..464bed1f0e 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedToken.cs @@ -72,6 +72,14 @@ public class IssuedToken : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("livemode")] public bool Livemode { get; set; } + /// + /// If present, describes the action required to make this SharedPaymentIssuedToken + /// usable for payments. Present when the token is in requires_action state. + /// + [JsonProperty("next_action")] + [STJS.JsonPropertyName("next_action")] + public IssuedTokenNextAction NextAction { get; set; } + /// /// ID of an existing PaymentMethod. /// @@ -116,6 +124,15 @@ public class IssuedToken : StripeEntity, IHasId, IHasObject [STJS.JsonPropertyName("shared_metadata")] public Dictionary SharedMetadata { get; set; } + /// + /// Status of this SharedPaymentIssuedToken, one of active, requires_action, + /// or deactivated. + /// One of: active, deactivated, or requires_action. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + /// /// Usage details of the SharedPaymentIssuedToken. /// diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs new file mode 100644 index 0000000000..4523095c05 --- /dev/null +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextAction.cs @@ -0,0 +1,27 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class IssuedTokenNextAction : StripeEntity + { + /// + /// Specifies the type of next action required. Determines which child attribute contains + /// action details. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + + /// + /// Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. + /// Present when next_action.type is use_stripe_sdk. + /// + [JsonProperty("use_stripe_sdk")] + [STJS.JsonPropertyName("use_stripe_sdk")] + public IssuedTokenNextActionUseStripeSdk UseStripeSdk { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionUseStripeSdk.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionUseStripeSdk.cs new file mode 100644 index 0000000000..8b98d67ad8 --- /dev/null +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenNextActionUseStripeSdk.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.SharedPayment +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class IssuedTokenNextActionUseStripeSdk : StripeEntity + { + /// + /// A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle + /// the next action. Its content is subject to change. + /// + [JsonProperty("value")] + [STJS.JsonPropertyName("value")] + public string Value { get; set; } + } +} diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsights.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsights.cs index 3d36048125..c0adbbe092 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsights.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsights.cs @@ -9,35 +9,35 @@ namespace Stripe.SharedPayment public class IssuedTokenRiskDetailsInsights : StripeEntity { /// - /// Bot risk insight (score: Float, recommended_action). + /// Bot risk insight. /// [JsonProperty("bot")] [STJS.JsonPropertyName("bot")] public IssuedTokenRiskDetailsInsightsBot Bot { get; set; } /// - /// Card issuer decline risk insight (score: Float, recommended_action). + /// Card issuer decline risk insight. /// [JsonProperty("card_issuer_decline")] [STJS.JsonPropertyName("card_issuer_decline")] public IssuedTokenRiskDetailsInsightsCardIssuerDecline CardIssuerDecline { get; set; } /// - /// Card testing risk insight (score: Float, recommended_action). + /// Card testing risk insight. /// [JsonProperty("card_testing")] [STJS.JsonPropertyName("card_testing")] public IssuedTokenRiskDetailsInsightsCardTesting CardTesting { get; set; } /// - /// Fraudulent dispute risk insight (score: Integer, recommended_action). + /// Fraudulent dispute risk insight. /// [JsonProperty("fraudulent_dispute")] [STJS.JsonPropertyName("fraudulent_dispute")] public IssuedTokenRiskDetailsInsightsFraudulentDispute FraudulentDispute { get; set; } /// - /// Stolen card risk insight (score: Integer, recommended_action). + /// Stolen card risk insight. /// [JsonProperty("stolen_card")] [STJS.JsonPropertyName("stolen_card")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsBot.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsBot.cs index 0053af8d9a..80e627d48c 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsBot.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsBot.cs @@ -16,7 +16,7 @@ public class IssuedTokenRiskDetailsInsightsBot : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardIssuerDecline.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardIssuerDecline.cs index 44a045cdf0..de5fbedafa 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardIssuerDecline.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardIssuerDecline.cs @@ -16,7 +16,7 @@ public class IssuedTokenRiskDetailsInsightsCardIssuerDecline : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardTesting.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardTesting.cs index 9678f3d4e8..94b776f0c9 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardTesting.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsCardTesting.cs @@ -16,7 +16,7 @@ public class IssuedTokenRiskDetailsInsightsCardTesting : StripeEntity - /// Risk score for this insight (float). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsFraudulentDispute.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsFraudulentDispute.cs index 91823b7fd3..f9e2bf2c8f 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsFraudulentDispute.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsFraudulentDispute.cs @@ -16,7 +16,7 @@ public class IssuedTokenRiskDetailsInsightsFraudulentDispute : StripeEntity - /// Risk score for this insight (integer). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsStolenCard.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsStolenCard.cs index a0923e86f2..554fd28bd9 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsStolenCard.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenRiskDetailsInsightsStolenCard.cs @@ -16,7 +16,7 @@ public class IssuedTokenRiskDetailsInsightsStolenCard : StripeEntity - /// Risk score for this insight (integer). + /// Risk score for this insight. /// [JsonProperty("score")] [STJS.JsonPropertyName("score")] diff --git a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenSellerDetails.cs b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenSellerDetails.cs index 7fb938d8e3..ff1e2ab86d 100644 --- a/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenSellerDetails.cs +++ b/src/Stripe.net/Entities/SharedPayment/IssuedTokens/IssuedTokenSellerDetails.cs @@ -23,13 +23,5 @@ public class IssuedTokenSellerDetails : StripeEntity [JsonProperty("network_business_profile")] [STJS.JsonPropertyName("network_business_profile")] public string NetworkBusinessProfile { get; set; } - - /// - /// The unique and logical string that identifies the seller platform that this SharedToken - /// is being created for. - /// - [JsonProperty("network_id")] - [STJS.JsonPropertyName("network_id")] - public string NetworkId { get; set; } } } diff --git a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs index c4dbb459de..f461c0e59e 100644 --- a/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs +++ b/src/Stripe.net/Entities/Subscriptions/SubscriptionPaymentSettingsPaymentMethodOptions.cs @@ -24,6 +24,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the Bizum payment method options to pass to + /// invoices created by the subscription. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public SubscriptionPaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } + /// /// This sub-hash contains details about the Card payment method options to pass to invoices /// created by the subscription. @@ -32,6 +40,14 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity + /// This sub-hash contains details about the Check Scan payment method options to pass to + /// invoices created by the subscription. + /// + [JsonProperty("check_scan")] + [STJS.JsonPropertyName("check_scan")] + public SubscriptionPaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } + /// /// This sub-hash contains details about the Bank transfer payment method options to pass to /// invoices created by the subscription. @@ -95,21 +111,5 @@ public class SubscriptionPaymentSettingsPaymentMethodOptions : StripeEntity - /// This sub-hash contains details about the Bizum payment method options to pass to - /// invoices created by the subscription. - /// - [JsonProperty("bizum")] - [STJS.JsonPropertyName("bizum")] - public SubscriptionPaymentSettingsPaymentMethodOptionsBizum Bizum { get; set; } - - /// - /// This sub-hash contains details about the Check Scan payment method options to pass to - /// invoices created by the subscription. - /// - [JsonProperty("check_scan")] - [STJS.JsonPropertyName("check_scan")] - public SubscriptionPaymentSettingsPaymentMethodOptionsCheckScan CheckScan { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycle.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycle.cs index a4237f318d..dcddb5871f 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceBillingCycle.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class CadenceBillingCycle : StripeEntity { + /// + /// Specific configuration for determining billing dates when type=day. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public CadenceBillingCycleDay Day { get; set; } + /// /// The number of intervals (specified in the interval attribute) between cadence billings. /// For example, type=month and interval_count=3 bills every 3 months. @@ -16,6 +23,13 @@ public class CadenceBillingCycle : StripeEntity [STJS.JsonPropertyName("interval_count")] public long IntervalCount { get; set; } + /// + /// Specific configuration for determining billing dates when type=month. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public CadenceBillingCycleMonth Month { get; set; } + /// /// The frequency at which a cadence bills. /// One of: day, month, week, or year. @@ -24,20 +38,6 @@ public class CadenceBillingCycle : StripeEntity [STJS.JsonPropertyName("type")] public string Type { get; set; } - /// - /// Specific configuration for determining billing dates when type=day. - /// - [JsonProperty("day")] - [STJS.JsonPropertyName("day")] - public CadenceBillingCycleDay Day { get; set; } - - /// - /// Specific configuration for determining billing dates when type=month. - /// - [JsonProperty("month")] - [STJS.JsonPropertyName("month")] - public CadenceBillingCycleMonth Month { get; set; } - /// /// Specific configuration for determining billing dates when type=week. /// diff --git a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRule.cs b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRule.cs index 8397fbc11b..c17cdbb426 100644 --- a/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRule.cs +++ b/src/Stripe.net/Entities/V2/Billing/Cadences/CadenceInvoiceDiscountRule.cs @@ -15,18 +15,18 @@ public class CadenceInvoiceDiscountRule : StripeEntity - /// The type of the discount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details if the discount is a percentage off. /// [JsonProperty("percent_off")] [STJS.JsonPropertyName("percent_off")] public CadenceInvoiceDiscountRulePercentOff PercentOff { get; set; } + + /// + /// The type of the discount. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs index 8c82bf21f3..befb4278c2 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApply.cs @@ -8,21 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionApply : StripeEntity { - /// - /// When the apply action will take effect. If not specified, defaults to on_reserve. - /// - [JsonProperty("effective_at")] - [STJS.JsonPropertyName("effective_at")] - public IntentActionApplyEffectiveAt EffectiveAt { get; set; } - - /// - /// Type of the apply action details. - /// One of: discount, invoice_discount_rule, or spend_modifier_rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details for applying a discount. /// @@ -30,6 +15,13 @@ public class IntentActionApply : StripeEntity [STJS.JsonPropertyName("discount")] public IntentActionApplyDiscount Discount { get; set; } + /// + /// When the apply action will take effect. If not specified, defaults to on_reserve. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public IntentActionApplyEffectiveAt EffectiveAt { get; set; } + /// /// Details for applying a discount rule to future invoices. /// @@ -43,5 +35,13 @@ public class IntentActionApply : StripeEntity [JsonProperty("spend_modifier_rule")] [STJS.JsonPropertyName("spend_modifier_rule")] public IntentActionApplySpendModifierRule SpendModifierRule { get; set; } + + /// + /// Type of the apply action details. + /// One of: discount, invoice_discount_rule, or spend_modifier_rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRule.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRule.cs index c95d2d90ea..12411a2568 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRule.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplyInvoiceDiscountRule.cs @@ -23,18 +23,18 @@ public class IntentActionApplyInvoiceDiscountRule : StripeEntity - /// Type of the discount rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Configuration for percentage off discount. /// [JsonProperty("percent_off")] [STJS.JsonPropertyName("percent_off")] public IntentActionApplyInvoiceDiscountRulePercentOff PercentOff { get; set; } + + /// + /// Type of the discount rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRule.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRule.cs index 39d46e0cd2..0623828b70 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRule.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRule.cs @@ -22,13 +22,6 @@ public class IntentActionApplySpendModifierRule : StripeEntity - /// Type of the spend modifier. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details for max billing period spend modifier. Only present if type is /// max_billing_period_spend. @@ -36,5 +29,12 @@ public class IntentActionApplySpendModifierRule : StripeEntity + /// Type of the spend modifier. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmount.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmount.cs index 39256bc210..b729654612 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmount.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmount : StripeEntity { - /// - /// The type of the amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount. /// [JsonProperty("custom_pricing_unit")] [STJS.JsonPropertyName("custom_pricing_unit")] public IntentActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnit CustomPricingUnit { get; set; } + + /// + /// The type of the amount. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs index b1fa4e310e..984b470187 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivate.cs @@ -31,6 +31,13 @@ public class IntentActionDeactivate : StripeEntity [STJS.JsonPropertyName("effective_at")] public IntentActionDeactivateEffectiveAt EffectiveAt { get; set; } + /// + /// Details for deactivating a Pricing Plan Subscription. + /// + [JsonProperty("pricing_plan_subscription_details")] + [STJS.JsonPropertyName("pricing_plan_subscription_details")] + public IntentActionDeactivatePricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } + /// /// Type of the action details. /// One of: pricing_plan_subscription_details, or v1_subscription_details. @@ -38,12 +45,5 @@ public class IntentActionDeactivate : StripeEntity [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } - - /// - /// Details for deactivating a Pricing Plan Subscription. - /// - [JsonProperty("pricing_plan_subscription_details")] - [STJS.JsonPropertyName("pricing_plan_subscription_details")] - public IntentActionDeactivatePricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index f63e6e08c0..adcba9842a 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -23,5 +15,13 @@ public class IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartia [JsonProperty("license_fee")] [STJS.JsonPropertyName("license_fee")] public IntentActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFee LicenseFee { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs index 3d12f98485..d02f4cf467 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModify.cs @@ -24,6 +24,13 @@ public class IntentActionModify : StripeEntity [STJS.JsonPropertyName("effective_at")] public IntentActionModifyEffectiveAt EffectiveAt { get; set; } + /// + /// Details for modifying a Pricing Plan Subscription. + /// + [JsonProperty("pricing_plan_subscription_details")] + [STJS.JsonPropertyName("pricing_plan_subscription_details")] + public IntentActionModifyPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } + /// /// Type of the action details. /// One of: pricing_plan_subscription_details, or v1_subscription_details. @@ -31,12 +38,5 @@ public class IntentActionModify : StripeEntity [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } - - /// - /// Details for modifying a Pricing Plan Subscription. - /// - [JsonProperty("pricing_plan_subscription_details")] - [STJS.JsonPropertyName("pricing_plan_subscription_details")] - public IntentActionModifyPricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs index 5d7dad7c34..dff1054aef 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionModifyPricingPlanSubscriptionDetailsComponentConfiguration : StripeEntity { - /// - /// Quantity of the component to be used. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - /// /// Lookup key for the pricing plan component. /// @@ -28,5 +21,12 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsComponentConfigurat [JsonProperty("pricing_plan_component")] [STJS.JsonPropertyName("pricing_plan_component")] public string PricingPlanComponent { get; set; } + + /// + /// Quantity of the component to be used. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index f59715c43e..d2723e536f 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -31,5 +23,13 @@ public class IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPer [JsonProperty("recurring_credit_grant")] [STJS.JsonPropertyName("recurring_credit_grant")] public IntentActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant RecurringCreditGrant { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs index e5ed2fd3ae..e5f2032052 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionRemove.cs @@ -15,14 +15,6 @@ public class IntentActionRemove : StripeEntity [STJS.JsonPropertyName("effective_at")] public IntentActionRemoveEffectiveAt EffectiveAt { get; set; } - /// - /// Type of the remove action. - /// One of: invoice_discount_rule, or spend_modifier_rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The ID of the discount rule to remove for future invoices. /// @@ -36,5 +28,13 @@ public class IntentActionRemove : StripeEntity [JsonProperty("spend_modifier_rule")] [STJS.JsonPropertyName("spend_modifier_rule")] public string SpendModifierRule { get; set; } + + /// + /// Type of the remove action. + /// One of: invoice_discount_rule, or spend_modifier_rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs index fefe25b7a5..7b5e28d172 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribe.cs @@ -24,6 +24,13 @@ public class IntentActionSubscribe : StripeEntity [STJS.JsonPropertyName("effective_at")] public IntentActionSubscribeEffectiveAt EffectiveAt { get; set; } + /// + /// Details for subscribing to a Pricing Plan. + /// + [JsonProperty("pricing_plan_subscription_details")] + [STJS.JsonPropertyName("pricing_plan_subscription_details")] + public IntentActionSubscribePricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } + /// /// Type of the action details. /// One of: pricing_plan_subscription_details, or v1_subscription_details. @@ -32,13 +39,6 @@ public class IntentActionSubscribe : StripeEntity [STJS.JsonPropertyName("type")] public string Type { get; set; } - /// - /// Details for subscribing to a Pricing Plan. - /// - [JsonProperty("pricing_plan_subscription_details")] - [STJS.JsonPropertyName("pricing_plan_subscription_details")] - public IntentActionSubscribePricingPlanSubscriptionDetails PricingPlanSubscriptionDetails { get; set; } - /// /// Details for subscribing to a V1 subscription. /// diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs index cca5cf717e..408fa0de26 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfiguration : StripeEntity { - /// - /// Quantity of the component to be used. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - /// /// Lookup key for the pricing plan component. /// @@ -28,5 +21,12 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsComponentConfigu [JsonProperty("pricing_plan_component")] [STJS.JsonPropertyName("pricing_plan_component")] public string PricingPlanComponent { get; set; } + + /// + /// Quantity of the component to be used. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs index cbb30a1c4f..90fbb322a5 100644 --- a/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs +++ b/src/Stripe.net/Entities/V2/Billing/IntentActions/IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehavior : StripeEntity { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -31,5 +23,13 @@ public class IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartial [JsonProperty("recurring_credit_grant")] [STJS.JsonPropertyName("recurring_credit_grant")] public IntentActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrant RecurringCreditGrant { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycle.cs b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycle.cs index 4f8c97c762..f9d00db913 100644 --- a/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycle.cs +++ b/src/Stripe.net/Entities/V2/Billing/Intents/IntentCadenceDataBillingCycle.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class IntentCadenceDataBillingCycle : StripeEntity { + /// + /// Specific configuration for determining billing dates when type=day. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public IntentCadenceDataBillingCycleDay Day { get; set; } + /// /// The number of intervals (specified in the interval attribute) between cadence billings. /// For example, type=month and interval_count=3 bills every 3 months. @@ -16,6 +23,13 @@ public class IntentCadenceDataBillingCycle : StripeEntity + /// Specific configuration for determining billing dates when type=month. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public IntentCadenceDataBillingCycleMonth Month { get; set; } + /// /// The frequency at which a cadence bills. /// One of: day, month, week, or year. @@ -24,20 +38,6 @@ public class IntentCadenceDataBillingCycle : StripeEntity - /// Specific configuration for determining billing dates when type=day. - /// - [JsonProperty("day")] - [STJS.JsonPropertyName("day")] - public IntentCadenceDataBillingCycleDay Day { get; set; } - - /// - /// Specific configuration for determining billing dates when type=month. - /// - [JsonProperty("month")] - [STJS.JsonPropertyName("month")] - public IntentCadenceDataBillingCycleMonth Month { get; set; } - /// /// Specific configuration for determining billing dates when type=week. /// diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsAmount.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsAmount.cs index b4064b74e9..f8737051f5 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsAmount.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantDetailsAmount : StripeEntity { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGra [JsonProperty("monetary")] [STJS.JsonPropertyName("monetary")] public V2.Amount Monetary { get; set; } + + /// + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsAmount.cs b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsAmount.cs index ad895825b3..4566532756 100644 --- a/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/PricingPlanSubscriptions/PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsAmount.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGrantDetailsCreditGrantPerTenantDetailsAmount : StripeEntity { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class PricingPlanSubscriptionPricingPlanComponentDetailRecurringCreditGra [JsonProperty("monetary")] [STJS.JsonPropertyName("monetary")] public V2.Amount Monetary { get; set; } + + /// + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs index 2705678559..a5a90f419b 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantAmount.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ServiceActionCreditGrantAmount : StripeEntity { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class ServiceActionCreditGrantAmount : StripeEntity + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { 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 74974a1207..81fcc9ab35 100644 --- a/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs +++ b/src/Stripe.net/Entities/V2/Billing/ServiceActions/ServiceActionCreditGrantPerTenantAmount.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ServiceActionCreditGrantPerTenantAmount : StripeEntity { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class ServiceActionCreditGrantPerTenantAmount : StripeEntity + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs index 220eb503bf..c8c3c26817 100644 --- a/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs +++ b/src/Stripe.net/Entities/V2/Core/AccountLinks/AccountLinkUseCase.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class AccountLinkUseCase : StripeEntity { - /// - /// Open Enum. The type of Account Link the user is requesting. - /// One of: account_onboarding, account_update, recipient_onboarding, - /// or recipient_update. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Hash containing configuration options for an Account Link object that onboards a new /// account. @@ -48,5 +39,14 @@ public class AccountLinkUseCase : StripeEntity [JsonProperty("recipient_update")] [STJS.JsonPropertyName("recipient_update")] public AccountLinkUseCaseRecipientUpdate RecipientUpdate { get; set; } + + /// + /// Open Enum. The type of Account Link the user is requesting. + /// One of: account_onboarding, account_update, recipient_onboarding, + /// or recipient_update. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Events/EventReason.cs b/src/Stripe.net/Entities/V2/Core/Events/EventReason.cs index 432442f8bd..8e8204def8 100644 --- a/src/Stripe.net/Entities/V2/Core/Events/EventReason.cs +++ b/src/Stripe.net/Entities/V2/Core/Events/EventReason.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class EventReason : StripeEntity { - /// - /// Event reason type. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Information on the API request that instigated the event. /// [JsonProperty("request")] [STJS.JsonPropertyName("request")] public EventReasonRequest Request { get; set; } + + /// + /// Event reason type. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/Events/EventReasonRequestClient.cs b/src/Stripe.net/Entities/V2/Core/Events/EventReasonRequestClient.cs index d91dc34f6d..d91c83e6bb 100644 --- a/src/Stripe.net/Entities/V2/Core/Events/EventReasonRequestClient.cs +++ b/src/Stripe.net/Entities/V2/Core/Events/EventReasonRequestClient.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class EventReasonRequestClient : StripeEntity { - /// - /// The type of the client. - /// One of: api_key, dashboard_user, or stripe_action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// API key that triggered the event. /// @@ -36,5 +28,13 @@ public class EventReasonRequestClient : StripeEntity [JsonProperty("stripe_action")] [STJS.JsonPropertyName("stripe_action")] public EventReasonRequestClientStripeAction StripeAction { get; set; } + + /// + /// The type of the client. + /// One of: api_key, dashboard_user, or stripe_action. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs new file mode 100644 index 0000000000..8cf33eca5e --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRun.cs @@ -0,0 +1,81 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// An execution of a Workflow in response to a triggering event. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRun : StripeEntity, IHasId, IHasObject + { + /// + /// The unique ID of the Workflow Run. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// When the Workflow Run was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// The current Workflow Run execution status. + /// One of: failed, started, or succeeded. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Details about the Workflow Run's status transitions. + /// + [JsonProperty("status_details")] + [STJS.JsonPropertyName("status_details")] + public WorkflowRunStatusDetails StatusDetails { get; set; } + + /// + /// Summary information about the Workflow Run's status transitions. + /// + [JsonProperty("status_transitions")] + [STJS.JsonPropertyName("status_transitions")] + public WorkflowRunStatusTransitions StatusTransitions { get; set; } + + /// + /// A record of the trigger that launched this Workflow Run. + /// + [JsonProperty("trigger")] + [STJS.JsonPropertyName("trigger")] + public WorkflowRunTrigger Trigger { get; set; } + + /// + /// The Workflow this Run belongs to. + /// + [JsonProperty("workflow")] + [STJS.JsonPropertyName("workflow")] + public string Workflow { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs new file mode 100644 index 0000000000..38c3f2aaa0 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetails.cs @@ -0,0 +1,32 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetails : StripeEntity + { + /// + /// Details about the Workflow Run's transition into the FAILED state. + /// + [JsonProperty("failed")] + [STJS.JsonPropertyName("failed")] + public WorkflowRunStatusDetailsFailed Failed { get; set; } + + /// + /// Details about the Workflow Run's transition in to the STARTED state. + /// + [JsonProperty("started")] + [STJS.JsonPropertyName("started")] + public WorkflowRunStatusDetailsStarted Started { get; set; } + + /// + /// Details about the Workflow Run's transition into the SUCCEEDED state. + /// + [JsonProperty("succeeded")] + [STJS.JsonPropertyName("succeeded")] + public WorkflowRunStatusDetailsSucceeded Succeeded { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs new file mode 100644 index 0000000000..35623c4456 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsFailed.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetailsFailed : StripeEntity + { + /// + /// If this Workflow Run failed during the processing of an action step, the step + /// identifier. + /// + [JsonProperty("action")] + [STJS.JsonPropertyName("action")] + public string Action { get; set; } + + /// + /// Category of the failure result. + /// + [JsonProperty("error_code")] + [STJS.JsonPropertyName("error_code")] + public string ErrorCode { get; set; } + + /// + /// Optional details about the failure result. + /// + [JsonProperty("error_message")] + [STJS.JsonPropertyName("error_message")] + public string ErrorMessage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs new file mode 100644 index 0000000000..de9b6be7d3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsStarted.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetailsStarted : StripeEntity + { + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs new file mode 100644 index 0000000000..e67ebb4043 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusDetailsSucceeded.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusDetailsSucceeded : StripeEntity + { + /// + /// Category of the success result. + /// + [JsonProperty("status_code")] + [STJS.JsonPropertyName("status_code")] + public string StatusCode { get; set; } + + /// + /// Optional details about the success result. + /// + [JsonProperty("status_message")] + [STJS.JsonPropertyName("status_message")] + public string StatusMessage { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs new file mode 100644 index 0000000000..38e3f20e8b --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunStatusTransitions.cs @@ -0,0 +1,33 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunStatusTransitions : StripeEntity + { + /// + /// When the Workflow Run failed. + /// + [JsonProperty("failed_at")] + [STJS.JsonPropertyName("failed_at")] + public DateTime? FailedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// When the Workflow Run was started. + /// + [JsonProperty("started_at")] + [STJS.JsonPropertyName("started_at")] + public DateTime? StartedAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// When the Workflow Run succeeded. + /// + [JsonProperty("succeeded_at")] + [STJS.JsonPropertyName("succeeded_at")] + public DateTime? SucceededAt { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs new file mode 100644 index 0000000000..8319fc8aee --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTrigger.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunTrigger : StripeEntity + { + /// + /// The Workflow Run was launched when Stripe emitted a certain event. + /// + [JsonProperty("event_trigger")] + [STJS.JsonPropertyName("event_trigger")] + public WorkflowRunTriggerEventTrigger EventTrigger { get; set; } + + /// + /// The Workflow Run was launched through a direct call, using either the Dashboard or the + /// Stripe API. + /// + [JsonProperty("manual")] + [STJS.JsonPropertyName("manual")] + public WorkflowRunTriggerManual Manual { get; set; } + + /// + /// Which type of trigger this is. + /// One of: event_trigger, or manual. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs new file mode 100644 index 0000000000..ce8d852f86 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerEventTrigger.cs @@ -0,0 +1,25 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunTriggerEventTrigger : StripeEntity, IHasId + { + /// + /// The Stripe event that triggered this Run. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// The Stripe event type triggered this Run. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs new file mode 100644 index 0000000000..234f2e03f3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/WorkflowRuns/WorkflowRunTriggerManual.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowRunTriggerManual : StripeEntity + { + /// + /// The input parameters used when launching the Run. + /// + [JsonProperty("input_parameters")] + [STJS.JsonPropertyName("input_parameters")] + public Dictionary InputParameters { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs b/src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs new file mode 100644 index 0000000000..fed3063906 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Workflows/Workflow.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + /// + /// A Stripe Workflow is a sequence of actions, like Stripe API calls, that are taken in + /// response to an initiating trigger. A trigger can be a Stripe API event, or a manual + /// invocation. + /// + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class Workflow : StripeEntity, IHasId, IHasObject + { + /// + /// The unique ID of the Workflow. + /// + [JsonProperty("id")] + [STJS.JsonPropertyName("id")] + public string Id { get; set; } + + /// + /// String representing the object's type. Objects of the same type share the same value of + /// the object field. + /// + [JsonProperty("object")] + [STJS.JsonPropertyName("object")] + public string Object { get; set; } + + /// + /// When the Workflow was created. + /// + [JsonProperty("created")] + [STJS.JsonPropertyName("created")] + public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch; + + /// + /// Workflow description. + /// + [JsonProperty("description")] + [STJS.JsonPropertyName("description")] + public string Description { get; set; } + + /// + /// Has the value true if the object exists in live mode or the value false if + /// the object exists in test mode. + /// + [JsonProperty("livemode")] + [STJS.JsonPropertyName("livemode")] + public bool Livemode { get; set; } + + /// + /// Whether this Workflow is active, inactive, or in some other state. Only active Workflows + /// may be invoked. + /// One of: active, archived, draft, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public string Status { get; set; } + + /// + /// Under what conditions will this Workflow launch. + /// + [JsonProperty("triggers")] + [STJS.JsonPropertyName("triggers")] + public List Triggers { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs new file mode 100644 index 0000000000..dca5111ca3 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTrigger.cs @@ -0,0 +1,34 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowTrigger : StripeEntity + { + /// + /// The Workflow can be launched when Stripe emits a certain event. + /// + [JsonProperty("event_trigger")] + [STJS.JsonPropertyName("event_trigger")] + public WorkflowTriggerEventTrigger EventTrigger { get; set; } + + /// + /// The Workflow can be launched through a direct call, using either the Dashboard or the + /// Stripe API. + /// + [JsonProperty("manual")] + [STJS.JsonPropertyName("manual")] + public WorkflowTriggerManual Manual { get; set; } + + /// + /// Which type of trigger this is. + /// One of: event_trigger, or manual. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs new file mode 100644 index 0000000000..d8f55fd295 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerEventTrigger.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowTriggerEventTrigger : StripeEntity + { + /// + /// The Stripe event type that will trigger this Workflow. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs new file mode 100644 index 0000000000..e4d29f0643 --- /dev/null +++ b/src/Stripe.net/Entities/V2/Core/Workflows/WorkflowTriggerManual.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeEntityConverter))] + public class WorkflowTriggerManual : StripeEntity + { + /// + /// An unprocessed version of the trigger's input parameter schema. + /// + [JsonProperty("raw_schema")] + [STJS.JsonPropertyName("raw_schema")] + public string RawSchema { get; set; } + } +} diff --git a/src/Stripe.net/Entities/V2/Data/Reporting/QueryRuns/QueryRunResult.cs b/src/Stripe.net/Entities/V2/Data/Reporting/QueryRuns/QueryRunResult.cs index 5d721431e3..8e2f15397f 100644 --- a/src/Stripe.net/Entities/V2/Data/Reporting/QueryRuns/QueryRunResult.cs +++ b/src/Stripe.net/Entities/V2/Data/Reporting/QueryRuns/QueryRunResult.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Data.Reporting [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class QueryRunResult : StripeEntity { - /// - /// The type of the ReportRun or QueryRun result. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Contains metadata about the file produced by the ReportRun or QueryRun, /// including its content type, size, and a URL to download its contents. @@ -22,5 +15,12 @@ public class QueryRunResult : StripeEntity [JsonProperty("file")] [STJS.JsonPropertyName("file")] public QueryRunResultFile File { get; set; } + + /// + /// The type of the ReportRun or QueryRun result. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKeyManagedBy.cs b/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKeyManagedBy.cs index f6329edf09..48f9dd59ec 100644 --- a/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKeyManagedBy.cs +++ b/src/Stripe.net/Entities/V2/Iam/ApiKeys/ApiKeyManagedBy.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.Iam [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ApiKeyManagedBy : StripeEntity { - /// - /// The type of entity. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// An application. /// [JsonProperty("application")] [STJS.JsonPropertyName("application")] public ApiKeyManagedByApplication Application { get; set; } + + /// + /// The type of entity. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAdjustedFlow.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAdjustedFlow.cs index 9a930a7b53..76ce2c6607 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAdjustedFlow.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Adjustments/AdjustmentAdjustedFlow.cs @@ -8,17 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class AdjustmentAdjustedFlow : StripeEntity { - /// - /// Closed Enum. If applicable, the type of flow linked to this Adjustment. The field - /// matching this value will contain the ID of the flow. - /// One of: adjustment, balance_exchange, inbound_payment, - /// inbound_transfer, outbound_payment, outbound_transfer, - /// received_credit, or received_debit. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// If applicable, the ID of the Adjustment linked to this Adjustment. /// @@ -60,5 +49,16 @@ public class AdjustmentAdjustedFlow : StripeEntity [JsonProperty("received_debit")] [STJS.JsonPropertyName("received_debit")] public string ReceivedDebit { get; set; } + + /// + /// Closed Enum. If applicable, the type of flow linked to this Adjustment. The field + /// matching this value will contain the ID of the flow. + /// One of: adjustment, balance_exchange, inbound_payment, + /// inbound_transfer, outbound_payment, outbound_transfer, + /// received_credit, or received_debit. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs index 5cfd7d5fe0..6ce5821ff8 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/FinancialAddresses/FinancialAddressCredentials.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class FinancialAddressCredentials : StripeEntity { - /// - /// Open Enum. The type of Credentials that are provisioned for the FinancialAddress. - /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The credentials of the UK Bank Account for the FinancialAddress. This contains unique /// banking details such as the sort code, account number, etc. of a UK bank account. @@ -32,6 +24,14 @@ public class FinancialAddressCredentials : StripeEntity + /// Open Enum. The type of Credentials that are provisioned for the FinancialAddress. + /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } + /// /// The credentials of the US Bank Account for the FinancialAddress. This contains unique /// banking details such as the routing number, account number, etc. of a US bank account. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs index 35eede7e33..ea015413c3 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/InboundTransfers/InboundTransferTransferHistory.cs @@ -9,6 +9,41 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class InboundTransferTransferHistory : StripeEntity, IHasId { + /// + /// The history entry for a failed InboundTransfer. + /// + [JsonProperty("bank_debit_failed")] + [STJS.JsonPropertyName("bank_debit_failed")] + public InboundTransferTransferHistoryBankDebitFailed BankDebitFailed { get; set; } + + /// + /// The history entry for a processing InboundTransfer. + /// + [JsonProperty("bank_debit_processing")] + [STJS.JsonPropertyName("bank_debit_processing")] + public InboundTransferTransferHistoryBankDebitProcessing BankDebitProcessing { get; set; } + + /// + /// The history entry for a queued InboundTransfer. + /// + [JsonProperty("bank_debit_queued")] + [STJS.JsonPropertyName("bank_debit_queued")] + public InboundTransferTransferHistoryBankDebitQueued BankDebitQueued { get; set; } + + /// + /// The history entry for a returned InboundTransfer. + /// + [JsonProperty("bank_debit_returned")] + [STJS.JsonPropertyName("bank_debit_returned")] + public InboundTransferTransferHistoryBankDebitReturned BankDebitReturned { get; set; } + + /// + /// The history entry for a succeeded InboundTransfer. + /// + [JsonProperty("bank_debit_succeeded")] + [STJS.JsonPropertyName("bank_debit_succeeded")] + public InboundTransferTransferHistoryBankDebitSucceeded BankDebitSucceeded { get; set; } + /// /// Creation time of the HistoryEntry in RFC 3339 format and UTC. /// @@ -46,40 +81,5 @@ public class InboundTransferTransferHistory : StripeEntity - /// The history entry for a failed InboundTransfer. - /// - [JsonProperty("bank_debit_failed")] - [STJS.JsonPropertyName("bank_debit_failed")] - public InboundTransferTransferHistoryBankDebitFailed BankDebitFailed { get; set; } - - /// - /// The history entry for a processing InboundTransfer. - /// - [JsonProperty("bank_debit_processing")] - [STJS.JsonPropertyName("bank_debit_processing")] - public InboundTransferTransferHistoryBankDebitProcessing BankDebitProcessing { get; set; } - - /// - /// The history entry for a queued InboundTransfer. - /// - [JsonProperty("bank_debit_queued")] - [STJS.JsonPropertyName("bank_debit_queued")] - public InboundTransferTransferHistoryBankDebitQueued BankDebitQueued { get; set; } - - /// - /// The history entry for a returned InboundTransfer. - /// - [JsonProperty("bank_debit_returned")] - [STJS.JsonPropertyName("bank_debit_returned")] - public InboundTransferTransferHistoryBankDebitReturned BankDebitReturned { get; set; } - - /// - /// The history entry for a succeeded InboundTransfer. - /// - [JsonProperty("bank_debit_succeeded")] - [STJS.JsonPropertyName("bank_debit_succeeded")] - public InboundTransferTransferHistoryBankDebitSucceeded BankDebitSucceeded { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteDeliveryOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteDeliveryOptions.cs index efb4be498f..7ebbd4da26 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteDeliveryOptions.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteDeliveryOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class OutboundPaymentQuoteDeliveryOptions : StripeEntity { - /// - /// Open Enum. Speed of the payout. - /// One of: instant, next_business_day, or standard. - /// - [JsonProperty("speed")] - [STJS.JsonPropertyName("speed")] - public string Speed { get; set; } - /// /// Open Enum. Method for bank account. /// One of: automatic, local, or wire. @@ -23,5 +15,13 @@ public class OutboundPaymentQuoteDeliveryOptions : StripeEntity + /// Open Enum. Speed of the payout. + /// One of: instant, next_business_day, or standard. + /// + [JsonProperty("speed")] + [STJS.JsonPropertyName("speed")] + public string Speed { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptions.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptions.cs index 15da8556e3..5e8e21cc25 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptions.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundPayments/OutboundPaymentDeliveryOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class OutboundPaymentDeliveryOptions : StripeEntity { - /// - /// Open Enum. Speed of the payout. - /// One of: instant, next_business_day, or standard. - /// - [JsonProperty("speed")] - [STJS.JsonPropertyName("speed")] - public string Speed { get; set; } - /// /// Open Enum. Method for bank account. /// One of: automatic, local, or wire. @@ -30,5 +22,13 @@ public class OutboundPaymentDeliveryOptions : StripeEntity + /// Open Enum. Speed of the payout. + /// One of: instant, next_business_day, or standard. + /// + [JsonProperty("speed")] + [STJS.JsonPropertyName("speed")] + public string Speed { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentNextAction.cs b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentNextAction.cs index 43acdad8e4..93c636f128 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentNextAction.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentNextAction.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class OutboundSetupIntentNextAction : StripeEntity { - /// - /// The type of next action. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Confirmation of Payee details. /// [JsonProperty("confirmation_of_payee")] [STJS.JsonPropertyName("confirmation_of_payee")] public OutboundSetupIntentNextActionConfirmationOfPayee ConfirmationOfPayee { get; set; } + + /// + /// The type of next action. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs index 99095be38f..2bb6bd33c0 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBalanceTransfer.cs @@ -15,15 +15,6 @@ public class ReceivedCreditBalanceTransfer : StripeEntity - /// Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit. - /// One of: outbound_payment, outbound_transfer, transfer, or - /// payout_v1. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The ID of the outbound payment object that originated the ReceivedCredit. /// @@ -51,5 +42,14 @@ public class ReceivedCreditBalanceTransfer : StripeEntity + /// Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit. + /// One of: outbound_payment, outbound_transfer, transfer, or + /// payout_v1. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs index 3e8d8f7766..a7e4146312 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedCredits/ReceivedCreditBankTransfer.cs @@ -15,21 +15,6 @@ public class ReceivedCreditBankTransfer : StripeEntity - /// Open Enum. Indicates the origin of source from which external funds originated from. - /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. - /// - [JsonProperty("origin_type")] - [STJS.JsonPropertyName("origin_type")] - public string OriginType { get; set; } - - /// - /// Freeform string set by originator of the external ReceivedCredit. - /// - [JsonProperty("statement_descriptor")] - [STJS.JsonPropertyName("statement_descriptor")] - public string StatementDescriptor { get; set; } - /// /// Hash containing the transaction bank details. Present if origin_type field value /// is gb_bank_account. @@ -38,6 +23,14 @@ public class ReceivedCreditBankTransfer : StripeEntity + /// Open Enum. Indicates the origin of source from which external funds originated from. + /// One of: gb_bank_account, sepa_bank_account, or us_bank_account. + /// + [JsonProperty("origin_type")] + [STJS.JsonPropertyName("origin_type")] + public string OriginType { get; set; } + /// /// Hash containing the transaction bank details. Present if origin_type field value /// is sepa_bank_account. @@ -46,6 +39,13 @@ public class ReceivedCreditBankTransfer : StripeEntity + /// Freeform string set by originator of the external ReceivedCredit. + /// + [JsonProperty("statement_descriptor")] + [STJS.JsonPropertyName("statement_descriptor")] + public string StatementDescriptor { get; set; } + /// /// Hash containing the transaction bank details. Present if origin_type field value /// is us_bank_account. diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitBalanceTransfer.cs b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitBalanceTransfer.cs index 8915eba950..6683d8eee8 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitBalanceTransfer.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/ReceivedDebits/ReceivedDebitBalanceTransfer.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ReceivedDebitBalanceTransfer : StripeEntity { - /// - /// Open Enum. The type of balance transfer that originated the ReceivedDebit. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The ID of the topup object that originated the ReceivedDebit. /// [JsonProperty("topup")] [STJS.JsonPropertyName("topup")] public string Topup { get; set; } + + /// + /// Open Enum. The type of balance transfer that originated the ReceivedDebit. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetailsFlow.cs b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetailsFlow.cs index 6620a8c277..f3e27d0f7e 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetailsFlow.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/TransactionEntries/TransactionEntryTransactionDetailsFlow.cs @@ -8,24 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class TransactionEntryTransactionDetailsFlow : StripeEntity { - /// - /// Open Enum. Type of the flow that created the Transaction. The field matching this value - /// will contain the ID of the flow. - /// One of: adjustment, application_fee, application_fee_refund, - /// charge, currency_conversion, dispute, fee_transaction, - /// inbound_transfer, outbound_payment, outbound_transfer, - /// payout, received_credit, received_debit, refund, - /// reserve_hold, reserve_release, topup, transfer, - /// transfer_reversal, treasury_credit_reversal, - /// treasury_debit_reversal, treasury_inbound_transfer, - /// treasury_issuing_authorization, treasury_other, - /// treasury_outbound_payment, treasury_outbound_transfer, - /// treasury_received_credit, or treasury_received_debit. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// If applicable, the ID of the Adjustment that created this Transaction. /// @@ -216,5 +198,23 @@ public class TransactionEntryTransactionDetailsFlow : StripeEntity + /// Open Enum. Type of the flow that created the Transaction. The field matching this value + /// will contain the ID of the flow. + /// One of: adjustment, application_fee, application_fee_refund, + /// charge, currency_conversion, dispute, fee_transaction, + /// inbound_transfer, outbound_payment, outbound_transfer, + /// payout, received_credit, received_debit, refund, + /// reserve_hold, reserve_release, topup, transfer, + /// transfer_reversal, treasury_credit_reversal, + /// treasury_debit_reversal, treasury_inbound_transfer, + /// treasury_issuing_authorization, treasury_other, + /// treasury_outbound_payment, treasury_outbound_transfer, + /// treasury_received_credit, or treasury_received_debit. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionFlow.cs b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionFlow.cs index f50f280f7f..0841d44c7c 100644 --- a/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionFlow.cs +++ b/src/Stripe.net/Entities/V2/MoneyManagement/Transactions/TransactionFlow.cs @@ -8,24 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class TransactionFlow : StripeEntity { - /// - /// Open Enum. Type of the flow that created the Transaction. The field matching this value - /// will contain the ID of the flow. - /// One of: adjustment, application_fee, application_fee_refund, - /// charge, currency_conversion, dispute, fee_transaction, - /// inbound_transfer, outbound_payment, outbound_transfer, - /// payout, received_credit, received_debit, refund, - /// reserve_hold, reserve_release, topup, transfer, - /// transfer_reversal, treasury_credit_reversal, - /// treasury_debit_reversal, treasury_inbound_transfer, - /// treasury_issuing_authorization, treasury_other, - /// treasury_outbound_payment, treasury_outbound_transfer, - /// treasury_received_credit, or treasury_received_debit. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// If applicable, the ID of the Adjustment that created this Transaction. /// @@ -216,5 +198,23 @@ public class TransactionFlow : StripeEntity [JsonProperty("treasury_received_debit")] [STJS.JsonPropertyName("treasury_received_debit")] public string TreasuryReceivedDebit { get; set; } + + /// + /// Open Enum. Type of the flow that created the Transaction. The field matching this value + /// will contain the ID of the flow. + /// One of: adjustment, application_fee, application_fee_refund, + /// charge, currency_conversion, dispute, fee_transaction, + /// inbound_transfer, outbound_payment, outbound_transfer, + /// payout, received_credit, received_debit, refund, + /// reserve_hold, reserve_release, topup, transfer, + /// transfer_reversal, treasury_credit_reversal, + /// treasury_debit_reversal, treasury_inbound_transfer, + /// treasury_issuing_authorization, treasury_other, + /// treasury_outbound_payment, treasury_outbound_transfer, + /// treasury_received_credit, or treasury_received_debit. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitFlow.cs b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitFlow.cs index c400dbe736..1847ca0ecb 100644 --- a/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitFlow.cs +++ b/src/Stripe.net/Entities/V2/Payments/SettlementAllocationIntentSplits/SettlementAllocationIntentSplitFlow.cs @@ -8,16 +8,6 @@ namespace Stripe.V2.Payments [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class SettlementAllocationIntentSplitFlow : StripeEntity { - /// - /// Type of the flow linked to the transaction which settled the - /// SettlementAllocationIntentSplit. The field matching this value will contain the ID of - /// the flow. - /// One of: outbound_payment, outbound_transfer, or received_credit. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// If applicable, the ID of the OutboundPayment that created this transaction. /// @@ -38,5 +28,15 @@ public class SettlementAllocationIntentSplitFlow : StripeEntity + /// Type of the flow linked to the transaction which settled the + /// SettlementAllocationIntentSplit. The field matching this value will contain the ID of + /// the flow. + /// One of: outbound_payment, outbound_transfer, or received_credit. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs index 0d960e7ec8..1cac61fa24 100644 --- a/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs +++ b/src/Stripe.net/Entities/V2/Reporting/ReportRuns/ReportRunResult.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Reporting [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ReportRunResult : StripeEntity { - /// - /// The type of the ReportRun or QueryRun result. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Contains metadata about the file produced by the ReportRun or QueryRun, /// including its content type, size, and a URL to download its contents. @@ -22,5 +15,12 @@ public class ReportRunResult : StripeEntity [JsonProperty("file")] [STJS.JsonPropertyName("file")] public ReportRunResultFile File { get; set; } + + /// + /// The type of the ReportRun or QueryRun result. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Entities/V2/Tax/ManualRules/ManualRuleProduct.cs b/src/Stripe.net/Entities/V2/Tax/ManualRules/ManualRuleProduct.cs index d83fce5821..3ed81a1774 100644 --- a/src/Stripe.net/Entities/V2/Tax/ManualRules/ManualRuleProduct.cs +++ b/src/Stripe.net/Entities/V2/Tax/ManualRules/ManualRuleProduct.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Tax [STJS.JsonConverter(typeof(STJStripeEntityConverter))] public class ManualRuleProduct : StripeEntity { - /// - /// The type of the product. - /// One of: licensed_item, metered_item, or tax_code. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The licensed item identifier. /// @@ -36,5 +28,13 @@ public class ManualRuleProduct : StripeEntity [JsonProperty("tax_code")] [STJS.JsonPropertyName("tax_code")] public string TaxCode { get; set; } + + /// + /// The type of the product. + /// One of: licensed_item, metered_item, or tax_code. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs index 4f229e32ae..1e0a4662d8 100644 --- a/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs +++ b/src/Stripe.net/Infrastructure/Public/StripeTypeRegistry.cs @@ -314,6 +314,8 @@ public static class StripeTypeRegistry { "v2.core.event_destination", typeof(V2.Core.EventDestination) }, { "v2.core.vault.gb_bank_account", typeof(V2.Core.Vault.GbBankAccount) }, { "v2.core.vault.us_bank_account", typeof(V2.Core.Vault.UsBankAccount) }, + { "v2.core.workflow", typeof(V2.Core.Workflow) }, + { "v2.core.workflow_run", typeof(V2.Core.WorkflowRun) }, { "v2.data.reporting.query_run", typeof(V2.Data.Reporting.QueryRun) }, { "v2.iam.api_key", typeof(V2.Iam.ApiKey) }, { "v2.money_management.adjustment", typeof(V2.MoneyManagement.Adjustment) }, diff --git a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCardOptions.cs b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCardOptions.cs index 0cb5a8274e..96b8f9e4c6 100644 --- a/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCardOptions.cs +++ b/src/Stripe.net/Services/AccountExternalAccounts/AccountExternalAccountCardOptions.cs @@ -53,14 +53,6 @@ public class AccountExternalAccountCardOptions : INestedOptions, IHasMetadata, I [STJS.JsonPropertyName("exp_year")] public long? ExpYear { get; set; } - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - [JsonProperty("number")] - [STJS.JsonPropertyName("number")] - public string Number { get; set; } - /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -69,5 +61,13 @@ public class AccountExternalAccountCardOptions : INestedOptions, IHasMetadata, I [JsonProperty("metadata")] [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + [JsonProperty("number")] + [STJS.JsonPropertyName("number")] + public string Number { get; set; } } } diff --git a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPaymentsOptions.cs b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPaymentsOptions.cs index dfa06eb21c..407241e1bd 100644 --- a/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPaymentsOptions.cs +++ b/src/Stripe.net/Services/BalanceSettings/BalanceSettingsPaymentsOptions.cs @@ -1,6 +1,7 @@ // File generated from our OpenAPI spec namespace Stripe { + using System.Collections.Generic; using Newtonsoft.Json; using Stripe.Infrastructure; using STJS = System.Text.Json.Serialization; @@ -25,6 +26,15 @@ public class BalanceSettingsPaymentsOptions : INestedOptions [STJS.JsonPropertyName("payouts")] public BalanceSettingsPaymentsPayoutsOptions Payouts { get; set; } + /// + /// A hash of settlement currencies to update. Each key is an ISO 4217 currency code, and + /// the value is either enabled or disabled. + /// One of: disabled, or enabled. + /// + [JsonProperty("settlement_currencies")] + [STJS.JsonPropertyName("settlement_currencies")] + public Dictionary SettlementCurrencies { get; set; } + /// /// Settings related to the account's balance settlement timing. /// diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticSurchargeOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticSurchargeOptions.cs new file mode 100644 index 0000000000..bb2c83c383 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionAutomaticSurchargeOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionAutomaticSurchargeOptions : INestedOptions + { + /// + /// Determines which amount serves as the basis for calculating the surcharge. + /// One of: total_after_tax, or total_before_tax. + /// + [JsonProperty("calculation_basis")] + [STJS.JsonPropertyName("calculation_basis")] + public string CalculationBasis { get; set; } + + /// + /// Set to true to calculate surcharge automatically using the customer's card + /// details and location. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Specifies whether the surcharge is considered inclusive or exclusive of taxes. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] + [STJS.JsonPropertyName("tax_behavior")] + public string TaxBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs index 75efa74d01..14f5455680 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionCreateOptions.cs @@ -47,6 +47,13 @@ public class SessionCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("approval_method")] public string ApprovalMethod { get; set; } + /// + /// Settings for automatic surcharge calculation for this session. + /// + [JsonProperty("automatic_surcharge")] + [STJS.JsonPropertyName("automatic_surcharge")] + public SessionAutomaticSurchargeOptions AutomaticSurcharge { 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/SessionPaymentMethodOptionsBizumMandateOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBizumMandateOptionsOptions.cs new file mode 100644 index 0000000000..4281c236b6 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBizumMandateOptionsOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionPaymentMethodOptionsBizumMandateOptionsOptions : INestedOptions + { + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBizumOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBizumOptions.cs new file mode 100644 index 0000000000..8c349b1807 --- /dev/null +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsBizumOptions.cs @@ -0,0 +1,18 @@ +// File generated from our OpenAPI spec +namespace Stripe.Checkout +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class SessionPaymentMethodOptionsBizumOptions : INestedOptions + { + /// + /// Additional fields for mandate creation. + /// + [JsonProperty("mandate_options")] + [STJS.JsonPropertyName("mandate_options")] + public SessionPaymentMethodOptionsBizumMandateOptionsOptions MandateOptions { get; set; } + } +} diff --git a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs index bbc65ec806..4eae01d5c2 100644 --- a/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs +++ b/src/Stripe.net/Services/Checkout/Sessions/SessionPaymentMethodOptionsOptions.cs @@ -79,6 +79,13 @@ public class SessionPaymentMethodOptionsOptions : INestedOptions [STJS.JsonPropertyName("billie")] public SessionPaymentMethodOptionsBillieOptions Billie { get; set; } + /// + /// contains details about the Bizum payment method options. + /// + [JsonProperty("bizum")] + [STJS.JsonPropertyName("bizum")] + public SessionPaymentMethodOptionsBizumOptions Bizum { get; set; } + /// /// contains details about the Boleto payment method options. /// diff --git a/src/Stripe.net/Services/ExternalAccounts/ExternalAccountCardOptions.cs b/src/Stripe.net/Services/ExternalAccounts/ExternalAccountCardOptions.cs index 93182c537e..136123c5d4 100644 --- a/src/Stripe.net/Services/ExternalAccounts/ExternalAccountCardOptions.cs +++ b/src/Stripe.net/Services/ExternalAccounts/ExternalAccountCardOptions.cs @@ -53,14 +53,6 @@ public class ExternalAccountCardOptions : INestedOptions, IHasMetadata, IHasObje [STJS.JsonPropertyName("exp_year")] public long? ExpYear { get; set; } - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - [JsonProperty("number")] - [STJS.JsonPropertyName("number")] - public string Number { get; set; } - /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -69,5 +61,13 @@ public class ExternalAccountCardOptions : INestedOptions, IHasMetadata, IHasObje [JsonProperty("metadata")] [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + [JsonProperty("number")] + [STJS.JsonPropertyName("number")] + public string Number { get; set; } } } diff --git a/src/Stripe.net/Services/Identity/VerificationReports/VerificationReportListOptions.cs b/src/Stripe.net/Services/Identity/VerificationReports/VerificationReportListOptions.cs index dc1b0e77f4..6998541018 100644 --- a/src/Stripe.net/Services/Identity/VerificationReports/VerificationReportListOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationReports/VerificationReportListOptions.cs @@ -35,7 +35,7 @@ public class VerificationReportListOptions : ListOptions /// /// Only return VerificationReports of this type. - /// One of: document, or id_number. + /// One of: document, email, or id_number. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs index 44eeea7191..40fb74295c 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionCreateOptions.cs @@ -17,6 +17,13 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("client_reference_id")] public string ClientReferenceId { get; set; } + /// + /// Confirm and submit the provided details for verification. + /// + [JsonProperty("confirm")] + [STJS.JsonPropertyName("confirm")] + public bool? Confirm { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -73,7 +80,7 @@ public class VerificationSessionCreateOptions : BaseOptions, IHasMetadata /// The type of verification /// check to be performed. You must provide a type if not passing /// verification_flow. - /// One of: document, or id_number. + /// One of: document, email, or id_number. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs index 5688104685..8fb516e3cb 100644 --- a/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs +++ b/src/Stripe.net/Services/Identity/VerificationSessions/VerificationSessionUpdateOptions.cs @@ -9,6 +9,13 @@ namespace Stripe.Identity [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class VerificationSessionUpdateOptions : BaseOptions, IHasMetadata { + /// + /// Confirm and submit the provided details for verification. + /// + [JsonProperty("confirm")] + [STJS.JsonPropertyName("confirm")] + public bool? Confirm { get; set; } + /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -36,7 +43,7 @@ public class VerificationSessionUpdateOptions : BaseOptions, IHasMetadata /// /// The type of verification /// check to be performed. - /// One of: document, or id_number. + /// One of: document, email, or id_number. /// [JsonProperty("type")] [STJS.JsonPropertyName("type")] diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs new file mode 100644 index 0000000000..66ca1543c3 --- /dev/null +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordReportAuthorizedOptions.cs @@ -0,0 +1,49 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using System; + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentAttemptRecordReportAuthorizedOptions : BaseOptions, IHasMetadata + { + private Dictionary metadata; + + /// + /// When the reported payment was authorized. Measured in seconds since the Unix epoch. + /// + [JsonProperty("authorized_at")] + [JsonConverter(typeof(UnixDateTimeConverter))] + [STJS.JsonPropertyName("authorized_at")] + [STJS.JsonConverter(typeof(STJUnixDateTimeConverter))] + public DateTime? AuthorizedAt { 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")] + [STJS.JsonPropertyName("metadata")] + public Dictionary Metadata + { + get => this.metadata; + set + { + this.metadata = value; + this.SetTracker.Track(); + } + } + + /// + /// Processor information for this payment. + /// + [JsonProperty("processor_details")] + [STJS.JsonPropertyName("processor_details")] + public PaymentAttemptRecordProcessorDetailsOptions ProcessorDetails { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs index 5cfa883ea7..0851c71d0e 100644 --- a/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs +++ b/src/Stripe.net/Services/PaymentAttemptRecords/PaymentAttemptRecordService.cs @@ -90,6 +90,22 @@ public virtual Task ReportAuthenticatedAsync(string id, Pa 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 authorized.

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

Report that the specified Payment Attempt Record was authorized.

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

Report that the specified Payment Attempt Record was canceled.

. ///
diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs index 73f933254a..35c6154c93 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentConfirmOptions.cs @@ -294,13 +294,6 @@ public string SetupFutureUsage } } - /// - /// ID of the SharedPaymentToken used to confirm this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// Shipping information for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs index 17664f99c9..7ef67d9855 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentCreateOptions.cs @@ -386,13 +386,6 @@ public PaymentIntentMandateDataOptions MandateData [STJS.JsonPropertyName("setup_future_usage")] public string SetupFutureUsage { get; set; } - /// - /// ID of the SharedPaymentToken used to confirm this PaymentIntent. - /// - [JsonProperty("shared_payment_granted_token")] - [STJS.JsonPropertyName("shared_payment_granted_token")] - public string SharedPaymentGrantedToken { get; set; } - /// /// Shipping information for this PaymentIntent. /// diff --git a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs index a3a1af7367..aa275d75b5 100644 --- a/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/PaymentIntents/PaymentIntentPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class PaymentIntentPaymentMethodDataOptions : INestedOptions, IHasMetadat [STJS.JsonPropertyName("sepa_debit")] public PaymentIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticSurchargeOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticSurchargeOptions.cs new file mode 100644 index 0000000000..d0c043c0ff --- /dev/null +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkAutomaticSurchargeOptions.cs @@ -0,0 +1,35 @@ +// File generated from our OpenAPI spec +namespace Stripe +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class PaymentLinkAutomaticSurchargeOptions : INestedOptions + { + /// + /// Determines which amount serves as the basis for calculating the surcharge. + /// One of: total_after_tax, or total_before_tax. + /// + [JsonProperty("calculation_basis")] + [STJS.JsonPropertyName("calculation_basis")] + public string CalculationBasis { get; set; } + + /// + /// Set to true to calculate surcharge automatically using the customer's card + /// details and location. + /// + [JsonProperty("enabled")] + [STJS.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Specifies whether the surcharge is considered inclusive or exclusive of taxes. + /// One of: exclusive, inclusive, or unspecified. + /// + [JsonProperty("tax_behavior")] + [STJS.JsonPropertyName("tax_behavior")] + public string TaxBehavior { get; set; } + } +} diff --git a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs index e80225ae39..66f787dfdd 100644 --- a/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs +++ b/src/Stripe.net/Services/PaymentLinks/PaymentLinkCreateOptions.cs @@ -42,6 +42,13 @@ public class PaymentLinkCreateOptions : BaseOptions, IHasMetadata [STJS.JsonPropertyName("application_fee_percent")] public decimal? ApplicationFeePercent { get; set; } + /// + /// Configuration for automatic surcharge calculation. + /// + [JsonProperty("automatic_surcharge")] + [STJS.JsonPropertyName("automatic_surcharge")] + public PaymentLinkAutomaticSurchargeOptions AutomaticSurcharge { get; set; } + /// /// Configuration for automatic tax collection. /// diff --git a/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs index 317b34f33c..57c68671f9 100644 --- a/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs +++ b/src/Stripe.net/Services/Radar/PaymentEvaluations/PaymentEvaluationClientDeviceMetadataDetailsOptions.cs @@ -8,6 +8,14 @@ namespace Stripe.Radar [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class PaymentEvaluationClientDeviceMetadataDetailsOptions : INestedOptions { + /// + /// Direct client device attributes such as IP address and user agent. Use this as an + /// alternative to radar_session when a Radar Session isn't available. + /// + [JsonProperty("data")] + [STJS.JsonPropertyName("data")] + public PaymentEvaluationClientDeviceMetadataDetailsDataOptions Data { get; set; } + /// /// ID for the Radar Session to associate with the payment evaluation. A Radar Session is a snapshot of @@ -17,13 +25,5 @@ public class PaymentEvaluationClientDeviceMetadataDetailsOptions : INestedOption [JsonProperty("radar_session")] [STJS.JsonPropertyName("radar_session")] public string RadarSession { get; set; } - - /// - /// Direct client device attributes such as IP address and user agent. Use this as an - /// alternative to radar_session when a Radar Session isn't available. - /// - [JsonProperty("data")] - [STJS.JsonPropertyName("data")] - public PaymentEvaluationClientDeviceMetadataDetailsDataOptions Data { get; set; } } } diff --git a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs index 3ea3872e8a..aad7451c63 100644 --- a/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/SetupIntents/SetupIntentPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class SetupIntentPaymentMethodDataOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("sepa_debit")] public SetupIntentPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/Sources/SourceCardOptions.cs b/src/Stripe.net/Services/Sources/SourceCardOptions.cs index 6dc5fd7e9b..d7cc9c22b9 100644 --- a/src/Stripe.net/Services/Sources/SourceCardOptions.cs +++ b/src/Stripe.net/Services/Sources/SourceCardOptions.cs @@ -49,14 +49,6 @@ public class SourceCardOptions : INestedOptions, IHasMetadata [STJS.JsonPropertyName("exp_year")] public long? ExpYear { get; set; } - [JsonProperty("name")] - [STJS.JsonPropertyName("name")] - public string Name { get; set; } - - [JsonProperty("number")] - [STJS.JsonPropertyName("number")] - public string Number { get; set; } - /// /// Set of key-value pairs that you can /// attach to an object. This can be useful for storing additional information about the @@ -65,5 +57,13 @@ public class SourceCardOptions : INestedOptions, IHasMetadata [JsonProperty("metadata")] [STJS.JsonPropertyName("metadata")] public Dictionary Metadata { get; set; } + + [JsonProperty("name")] + [STJS.JsonPropertyName("name")] + public string Name { get; set; } + + [JsonProperty("number")] + [STJS.JsonPropertyName("number")] + public string Number { get; set; } } } diff --git a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs index 35cc9ae010..a5567d0895 100644 --- a/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/TestHelpers/ConfirmationTokens/ConfirmationTokenPaymentMethodDataOptions.cs @@ -439,6 +439,13 @@ public class ConfirmationTokenPaymentMethodDataOptions : INestedOptions, IHasMet [STJS.JsonPropertyName("sepa_debit")] public ConfirmationTokenPaymentMethodDataSepaDebitOptions SepaDebit { get; set; } + /// + /// ID of the SharedPaymentGrantedToken used to confirm this PaymentIntent. + /// + [JsonProperty("shared_payment_granted_token")] + [STJS.JsonPropertyName("shared_payment_granted_token")] + public string SharedPaymentGrantedToken { get; set; } + /// /// If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay /// payment method. diff --git a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs index 85463ac967..5183355ef1 100644 --- a/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Cadences/CadenceCreateBillingCycleOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class CadenceCreateBillingCycleOptions : INestedOptions { + /// + /// Specific configuration for determining billing dates when type=day. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public CadenceCreateBillingCycleDayOptions Day { get; set; } + /// /// The number of intervals (specified in the interval attribute) between cadence billings. /// For example, type=month and interval_count=3 bills every 3 months. If this is not @@ -17,6 +24,13 @@ public class CadenceCreateBillingCycleOptions : INestedOptions [STJS.JsonPropertyName("interval_count")] public long? IntervalCount { get; set; } + /// + /// Specific configuration for determining billing dates when type=month. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public CadenceCreateBillingCycleMonthOptions Month { get; set; } + /// /// The frequency at which a cadence bills. /// One of: day, month, week, or year. @@ -25,20 +39,6 @@ public class CadenceCreateBillingCycleOptions : INestedOptions [STJS.JsonPropertyName("type")] public string Type { get; set; } - /// - /// Specific configuration for determining billing dates when type=day. - /// - [JsonProperty("day")] - [STJS.JsonPropertyName("day")] - public CadenceCreateBillingCycleDayOptions Day { get; set; } - - /// - /// Specific configuration for determining billing dates when type=month. - /// - [JsonProperty("month")] - [STJS.JsonPropertyName("month")] - public CadenceCreateBillingCycleMonthOptions Month { get; set; } - /// /// Specific configuration for determining billing dates when type=week. /// diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRuleOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRuleOptions.cs index 6ae406e8d8..95af1ad3d1 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRuleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyInvoiceDiscountRuleOptions.cs @@ -15,18 +15,18 @@ public class IntentCreateActionApplyInvoiceDiscountRuleOptions : INestedOptions [STJS.JsonPropertyName("applies_to")] public string AppliesTo { get; set; } - /// - /// Type of the discount rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Configuration for percentage off discount. /// [JsonProperty("percent_off")] [STJS.JsonPropertyName("percent_off")] public IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions PercentOff { get; set; } + + /// + /// Type of the discount rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs index 5151783f2b..f1e319e7be 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplyOptions.cs @@ -8,21 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionApplyOptions : INestedOptions { - /// - /// When the apply action will take effect. If not specified, defaults to on_reserve. - /// - [JsonProperty("effective_at")] - [STJS.JsonPropertyName("effective_at")] - public IntentCreateActionApplyEffectiveAtOptions EffectiveAt { get; set; } - - /// - /// Type of the apply action details. - /// One of: discount, invoice_discount_rule, or spend_modifier_rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details for applying a discount. /// @@ -30,6 +15,13 @@ public class IntentCreateActionApplyOptions : INestedOptions [STJS.JsonPropertyName("discount")] public IntentCreateActionApplyDiscountOptions Discount { get; set; } + /// + /// When the apply action will take effect. If not specified, defaults to on_reserve. + /// + [JsonProperty("effective_at")] + [STJS.JsonPropertyName("effective_at")] + public IntentCreateActionApplyEffectiveAtOptions EffectiveAt { get; set; } + /// /// Details for applying a discount rule to future invoices. /// @@ -43,5 +35,13 @@ public class IntentCreateActionApplyOptions : INestedOptions [JsonProperty("spend_modifier_rule")] [STJS.JsonPropertyName("spend_modifier_rule")] public IntentCreateActionApplySpendModifierRuleOptions SpendModifierRule { get; set; } + + /// + /// Type of the apply action details. + /// One of: discount, invoice_discount_rule, or spend_modifier_rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions.cs index 5f2ed67a46..465a816e0e 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions : INestedOptions { - /// - /// The type of the amount. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount. /// [JsonProperty("custom_pricing_unit")] [STJS.JsonPropertyName("custom_pricing_unit")] public IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnitOptions CustomPricingUnit { get; set; } + + /// + /// The type of the amount. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleOptions.cs index 6909b01940..abf1618825 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionApplySpendModifierRuleOptions.cs @@ -15,13 +15,6 @@ public class IntentCreateActionApplySpendModifierRuleOptions : INestedOptions [STJS.JsonPropertyName("applies_to")] public string AppliesTo { get; set; } - /// - /// Type of the spend modifier. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details for max billing period spend modifier. Only present if type is /// max_billing_period_spend. @@ -29,5 +22,12 @@ public class IntentCreateActionApplySpendModifierRuleOptions : INestedOptions [JsonProperty("max_billing_period_spend")] [STJS.JsonPropertyName("max_billing_period_spend")] public IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendOptions MaxBillingPeriodSpend { get; set; } + + /// + /// Type of the spend modifier. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index 8a1a2fd07e..b908436e26 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -23,5 +15,13 @@ public class IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverrides [JsonProperty("license_fee")] [STJS.JsonPropertyName("license_fee")] public IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions LicenseFee { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions.cs index b7270b6860..94dff637ef 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions : INestedOptions { - /// - /// Quantity of the component to be used. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - /// /// Lookup key for the pricing plan component. /// @@ -28,5 +21,12 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConf [JsonProperty("pricing_plan_component")] [STJS.JsonPropertyName("pricing_plan_component")] public string PricingPlanComponent { get; set; } + + /// + /// Quantity of the component to be used. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index d97b440a5e..bcc946077e 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -31,5 +23,13 @@ public class IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPart [JsonProperty("recurring_credit_grant")] [STJS.JsonPropertyName("recurring_credit_grant")] public IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions RecurringCreditGrant { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionOptions.cs index 99443b7641..1982d50716 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionOptions.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionOptions : INestedOptions { - /// - /// Type of the Billing Intent action. - /// One of: apply, deactivate, modify, remove, or - /// subscribe. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Details for an apply action. /// @@ -51,5 +42,14 @@ public class IntentCreateActionOptions : INestedOptions [JsonProperty("subscribe")] [STJS.JsonPropertyName("subscribe")] public IntentCreateActionSubscribeOptions Subscribe { get; set; } + + /// + /// Type of the Billing Intent action. + /// One of: apply, deactivate, modify, remove, or + /// subscribe. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs index 266a5ea076..4ea8361f27 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionRemoveOptions.cs @@ -15,14 +15,6 @@ public class IntentCreateActionRemoveOptions : INestedOptions [STJS.JsonPropertyName("effective_at")] public IntentCreateActionRemoveEffectiveAtOptions EffectiveAt { get; set; } - /// - /// Type of the remove action. - /// One of: invoice_discount_rule, or spend_modifier_rule. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The ID of the discount rule to remove for future invoices. /// @@ -36,5 +28,13 @@ public class IntentCreateActionRemoveOptions : INestedOptions [JsonProperty("spend_modifier_rule")] [STJS.JsonPropertyName("spend_modifier_rule")] public string SpendModifierRule { get; set; } + + /// + /// Type of the remove action. + /// One of: invoice_discount_rule, or spend_modifier_rule. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs index ea7786fef5..1ad1ab2a66 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribeOptions.cs @@ -24,6 +24,13 @@ public class IntentCreateActionSubscribeOptions : INestedOptions [STJS.JsonPropertyName("effective_at")] public IntentCreateActionSubscribeEffectiveAtOptions EffectiveAt { get; set; } + /// + /// Details for subscribing to a pricing plan. + /// + [JsonProperty("pricing_plan_subscription_details")] + [STJS.JsonPropertyName("pricing_plan_subscription_details")] + public IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions PricingPlanSubscriptionDetails { get; set; } + /// /// Type of the action details. /// One of: pricing_plan_subscription_details, or v1_subscription_details. @@ -32,13 +39,6 @@ public class IntentCreateActionSubscribeOptions : INestedOptions [STJS.JsonPropertyName("type")] public string Type { get; set; } - /// - /// Details for subscribing to a pricing plan. - /// - [JsonProperty("pricing_plan_subscription_details")] - [STJS.JsonPropertyName("pricing_plan_subscription_details")] - public IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions PricingPlanSubscriptionDetails { get; set; } - /// /// Details for subscribing to a v1 subscription. /// diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions.cs index ad83446ac0..a993cabdf1 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions.cs @@ -8,13 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions : INestedOptions { - /// - /// Quantity of the component to be used. - /// - [JsonProperty("quantity")] - [STJS.JsonPropertyName("quantity")] - public long? Quantity { get; set; } - /// /// Lookup key for the pricing plan component. /// @@ -28,5 +21,12 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentC [JsonProperty("pricing_plan_component")] [STJS.JsonPropertyName("pricing_plan_component")] public string PricingPlanComponent { get; set; } + + /// + /// Quantity of the component to be used. + /// + [JsonProperty("quantity")] + [STJS.JsonPropertyName("quantity")] + public long? Quantity { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs index 8a3723cf5c..c2023c6743 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions : INestedOptions { - /// - /// The type of behavior to override. - /// One of: license_fee, or recurring_credit_grant. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Overrides the behavior for license fee components when the action takes effect during /// the service period. @@ -31,5 +23,13 @@ public class IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesP [JsonProperty("recurring_credit_grant")] [STJS.JsonPropertyName("recurring_credit_grant")] public IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorRecurringCreditGrantOptions RecurringCreditGrant { get; set; } + + /// + /// The type of behavior to override. + /// One of: license_fee, or recurring_credit_grant. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs index 78ca63eb47..396038124e 100644 --- a/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/Intents/IntentCreateCadenceDataBillingCycleOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class IntentCreateCadenceDataBillingCycleOptions : INestedOptions { + /// + /// Specific configuration for determining billing dates when type=day. + /// + [JsonProperty("day")] + [STJS.JsonPropertyName("day")] + public IntentCreateCadenceDataBillingCycleDayOptions Day { get; set; } + /// /// The number of intervals (specified in the interval attribute) between cadence billings. /// For example, type=month and interval_count=3 bills every 3 months. If this is not @@ -17,6 +24,13 @@ public class IntentCreateCadenceDataBillingCycleOptions : INestedOptions [STJS.JsonPropertyName("interval_count")] public long? IntervalCount { get; set; } + /// + /// Specific configuration for determining billing dates when type=month. + /// + [JsonProperty("month")] + [STJS.JsonPropertyName("month")] + public IntentCreateCadenceDataBillingCycleMonthOptions Month { get; set; } + /// /// The frequency at which a cadence bills. /// One of: day, month, week, or year. @@ -25,20 +39,6 @@ public class IntentCreateCadenceDataBillingCycleOptions : INestedOptions [STJS.JsonPropertyName("type")] public string Type { get; set; } - /// - /// Specific configuration for determining billing dates when type=day. - /// - [JsonProperty("day")] - [STJS.JsonPropertyName("day")] - public IntentCreateCadenceDataBillingCycleDayOptions Day { get; set; } - - /// - /// Specific configuration for determining billing dates when type=month. - /// - [JsonProperty("month")] - [STJS.JsonPropertyName("month")] - public IntentCreateCadenceDataBillingCycleMonthOptions Month { get; set; } - /// /// Specific configuration for determining billing dates when type=week. /// diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs index 77b2dee364..6e69998fb8 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantAmountOptions.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ServiceActionCreateCreditGrantAmountOptions : INestedOptions { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class ServiceActionCreateCreditGrantAmountOptions : INestedOptions [JsonProperty("monetary")] [STJS.JsonPropertyName("monetary")] public V2.Amount Monetary { get; set; } + + /// + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { 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 c247846f90..d0cafbfa3b 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantAmountOptions.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ServiceActionCreateCreditGrantPerTenantAmountOptions : INestedOptions { - /// - /// The type of the credit grant amount. We currently support monetary and - /// custom_pricing_unit billing credits. - /// One of: custom_pricing_unit, or monetary. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The custom pricing unit amount of the credit grant. Required if type is /// custom_pricing_unit. @@ -31,5 +22,14 @@ public class ServiceActionCreateCreditGrantPerTenantAmountOptions : INestedOptio [JsonProperty("monetary")] [STJS.JsonPropertyName("monetary")] public V2.Amount Monetary { get; set; } + + /// + /// The type of the credit grant amount. We currently support monetary and + /// custom_pricing_unit billing credits. + /// One of: custom_pricing_unit, or monetary. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionOptions.cs index 00d6ea6c02..291a5fd60a 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionOptions.cs @@ -8,18 +8,18 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionOptions : INestedOptions { - /// - /// The type of the meter segment condition. We currently support dimension. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Dimension-based meter segment condition. /// [JsonProperty("dimension")] [STJS.JsonPropertyName("dimension")] public ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodMeterSegmentConditionDimensionOptions Dimension { get; set; } + + /// + /// The type of the meter segment condition. We currently support dimension. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionOptions.cs b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionOptions.cs index 4dc82a33dd..7dd74842b7 100644 --- a/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionOptions.cs +++ b/src/Stripe.net/Services/V2/Billing/ServiceActions/ServiceActionCreateCreditGrantPerTenantGrantConditionOptions.cs @@ -8,6 +8,13 @@ namespace Stripe.V2.Billing [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ServiceActionCreateCreditGrantPerTenantGrantConditionOptions : INestedOptions { + /// + /// The grant condition for the meter event first per period. + /// + [JsonProperty("meter_event_first_per_period")] + [STJS.JsonPropertyName("meter_event_first_per_period")] + public ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodOptions MeterEventFirstPerPeriod { get; set; } + /// /// The type of the grant condition. We currently support /// meter_event_first_per_period. @@ -15,12 +22,5 @@ public class ServiceActionCreateCreditGrantPerTenantGrantConditionOptions : INes [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } - - /// - /// The grant condition for the meter event first per period. - /// - [JsonProperty("meter_event_first_per_period")] - [STJS.JsonPropertyName("meter_event_first_per_period")] - public ServiceActionCreateCreditGrantPerTenantGrantConditionMeterEventFirstPerPeriodOptions MeterEventFirstPerPeriod { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs index 191a3834d6..09f9a4e39f 100644 --- a/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs +++ b/src/Stripe.net/Services/V2/Core/AccountLinks/AccountLinkCreateUseCaseOptions.cs @@ -8,15 +8,6 @@ namespace Stripe.V2.Core [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class AccountLinkCreateUseCaseOptions : INestedOptions { - /// - /// Open Enum. The type of Account Link the user is requesting. - /// One of: account_onboarding, account_update, recipient_onboarding, - /// or recipient_update. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// Hash containing configuration options for an Account Link object that onboards a new /// account. @@ -48,5 +39,14 @@ public class AccountLinkCreateUseCaseOptions : INestedOptions [JsonProperty("recipient_update")] [STJS.JsonPropertyName("recipient_update")] public AccountLinkCreateUseCaseRecipientUpdateOptions RecipientUpdate { get; set; } + + /// + /// Open Enum. The type of Account Link the user is requesting. + /// One of: account_onboarding, account_update, recipient_onboarding, + /// or recipient_update. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs new file mode 100644 index 0000000000..f5cdecbeac --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class WorkflowRunGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs new file mode 100644 index 0000000000..f57c359aea --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunListOptions.cs @@ -0,0 +1,29 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class WorkflowRunListOptions : V2.ListOptions + { + /// + /// When retrieving Workflow Runs, include only those with the specified status values. If + /// not specified, all Runs are returned. + /// One of: failed, started, or succeeded. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public List Status { get; set; } + + /// + /// When retrieving Workflow Runs, include only those associated with the Workflows + /// specified. If not specified, all Runs are returned. + /// + [JsonProperty("workflow")] + [STJS.JsonPropertyName("workflow")] + public List Workflow { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs new file mode 100644 index 0000000000..af104c1c3d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/WorkflowRuns/WorkflowRunService.cs @@ -0,0 +1,71 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class WorkflowRunService : Service + { + internal WorkflowRunService(ApiRequestor requestor) + : base(requestor) + { + } + + internal WorkflowRunService(IStripeClient client) + : base(client) + { + } + + /// + /// Retrieves the details of a Workflow Run by ID. + /// + public virtual WorkflowRun Get(string id, WorkflowRunGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves the details of a Workflow Run by ID. + /// + public virtual Task GetAsync(string id, WorkflowRunGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// List all Workflow Runs. + /// + public virtual V2.StripeList List(WorkflowRunListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs", options, requestOptions); + } + + /// + /// List all Workflow Runs. + /// + public virtual Task> ListAsync(WorkflowRunListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflow_runs", options, requestOptions, cancellationToken); + } + + /// + /// List all Workflow Runs. + /// + public virtual IEnumerable ListAutoPaging(WorkflowRunListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/workflow_runs", options, requestOptions); + } + + /// + /// List all Workflow Runs. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(WorkflowRunListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/workflow_runs", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs new file mode 100644 index 0000000000..204ee4666d --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowGetOptions.cs @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class WorkflowGetOptions : BaseOptions + { + } +} diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs new file mode 100644 index 0000000000..72bdbbb90a --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowInvokeOptions.cs @@ -0,0 +1,19 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class WorkflowInvokeOptions : BaseOptions + { + /// + /// Parameters used to invoke the Workflow Run. + /// + [JsonProperty("input_parameters")] + [STJS.JsonPropertyName("input_parameters")] + public Dictionary InputParameters { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs new file mode 100644 index 0000000000..a4a90c8187 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowListOptions.cs @@ -0,0 +1,21 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System.Collections.Generic; + using Newtonsoft.Json; + using Stripe.Infrastructure; + using STJS = System.Text.Json.Serialization; + + [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] + public class WorkflowListOptions : V2.ListOptions + { + /// + /// When retrieving Workflows, include only those with the specified status values. If not + /// specified, all Workflows in active and inactive status are returned. + /// One of: active, archived, draft, or inactive. + /// + [JsonProperty("status")] + [STJS.JsonPropertyName("status")] + public List Status { get; set; } + } +} diff --git a/src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs new file mode 100644 index 0000000000..fed7114087 --- /dev/null +++ b/src/Stripe.net/Services/V2/Core/Workflows/WorkflowService.cs @@ -0,0 +1,87 @@ +// File generated from our OpenAPI spec +namespace Stripe.V2.Core +{ + using System; + using System.Collections.Generic; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + public class WorkflowService : Service + { + internal WorkflowService(ApiRequestor requestor) + : base(requestor) + { + } + + internal WorkflowService(IStripeClient client) + : base(client) + { + } + + /// + /// Retrieves the details of a Workflow by ID. + /// + public virtual Workflow Get(string id, WorkflowGetOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions); + } + + /// + /// Retrieves the details of a Workflow by ID. + /// + public virtual Task GetAsync(string id, WorkflowGetOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}", options, requestOptions, cancellationToken); + } + + /// + /// Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. + /// + public virtual WorkflowRun Invoke(string id, WorkflowInvokeOptions options = null, RequestOptions requestOptions = null) + { + return this.Request(BaseAddress.Api, HttpMethod.Post, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions); + } + + /// + /// Invokes an on-demand Workflow with parameters, to launch a new Workflow Run. + /// + public virtual Task InvokeAsync(string id, WorkflowInvokeOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync(BaseAddress.Api, HttpMethod.Post, $"/v2/core/workflows/{WebUtility.UrlEncode(id)}/invoke", options, requestOptions, cancellationToken); + } + + /// + /// List all Workflows. + /// + public virtual V2.StripeList List(WorkflowListOptions options = null, RequestOptions requestOptions = null) + { + return this.Request>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows", options, requestOptions); + } + + /// + /// List all Workflows. + /// + public virtual Task> ListAsync(WorkflowListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.RequestAsync>(BaseAddress.Api, HttpMethod.Get, $"/v2/core/workflows", options, requestOptions, cancellationToken); + } + + /// + /// List all Workflows. + /// + public virtual IEnumerable ListAutoPaging(WorkflowListOptions options = null, RequestOptions requestOptions = null) + { + return this.ListRequestAutoPaging($"/v2/core/workflows", options, requestOptions); + } + + /// + /// List all Workflows. + /// + public virtual IAsyncEnumerable ListAutoPagingAsync(WorkflowListOptions options = null, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) + { + return this.ListRequestAutoPagingAsync($"/v2/core/workflows", options, requestOptions, cancellationToken); + } + } +} diff --git a/src/Stripe.net/Services/V2/CoreService.cs b/src/Stripe.net/Services/V2/CoreService.cs index 61a75b6432..f252d82d62 100644 --- a/src/Stripe.net/Services/V2/CoreService.cs +++ b/src/Stripe.net/Services/V2/CoreService.cs @@ -17,6 +17,8 @@ public class CoreService : Service private V2.Core.EventService events; private V2.Core.EventDestinationService eventDestinations; private V2.Core.VaultService vault; + private V2.Core.WorkflowService workflows; + private V2.Core.WorkflowRunService workflowRuns; internal CoreService(ApiRequestor requestor) : base(requestor) @@ -57,5 +59,11 @@ internal CoreService(IStripeClient client) public virtual V2.Core.VaultService Vault => this.vault ??= new V2.Core.VaultService( this.Requestor); + + public virtual V2.Core.WorkflowService Workflows => this.workflows ??= new V2.Core.WorkflowService( + this.Requestor); + + public virtual V2.Core.WorkflowRunService WorkflowRuns => this.workflowRuns ??= new V2.Core.WorkflowRunService( + this.Requestor); } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateDeliveryOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateDeliveryOptionsOptions.cs index 005873471a..6b994a9cfe 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateDeliveryOptionsOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPaymentQuotes/OutboundPaymentQuoteCreateDeliveryOptionsOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OutboundPaymentQuoteCreateDeliveryOptionsOptions : INestedOptions { - /// - /// Open Enum. Speed of the payout. - /// One of: instant, next_business_day, or standard. - /// - [JsonProperty("speed")] - [STJS.JsonPropertyName("speed")] - public string Speed { get; set; } - /// /// Open Enum. Method for bank account. /// One of: automatic, local, or wire. @@ -23,5 +15,13 @@ public class OutboundPaymentQuoteCreateDeliveryOptionsOptions : INestedOptions [JsonProperty("bank_account")] [STJS.JsonPropertyName("bank_account")] public string BankAccount { get; set; } + + /// + /// Open Enum. Speed of the payout. + /// One of: instant, next_business_day, or standard. + /// + [JsonProperty("speed")] + [STJS.JsonPropertyName("speed")] + public string Speed { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsOptions.cs index 922bb8d254..34167acac5 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundPayments/OutboundPaymentCreateDeliveryOptionsOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OutboundPaymentCreateDeliveryOptionsOptions : INestedOptions { - /// - /// Open Enum. Speed of the payout. - /// One of: instant, next_business_day, or standard. - /// - [JsonProperty("speed")] - [STJS.JsonPropertyName("speed")] - public string Speed { get; set; } - /// /// Open Enum. Method for bank account. /// One of: automatic, local, or wire. @@ -30,5 +22,13 @@ public class OutboundPaymentCreateDeliveryOptionsOptions : INestedOptions [JsonProperty("paper_check")] [STJS.JsonPropertyName("paper_check")] public OutboundPaymentCreateDeliveryOptionsPaperCheckOptions PaperCheck { get; set; } + + /// + /// Open Enum. Speed of the payout. + /// One of: instant, next_business_day, or standard. + /// + [JsonProperty("speed")] + [STJS.JsonPropertyName("speed")] + public string Speed { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataOptions.cs index 2afb594926..b8718370c5 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentCreatePayoutMethodDataOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OutboundSetupIntentCreatePayoutMethodDataOptions : INestedOptions { - /// - /// Closed Enum. The type of payout method to be created. - /// One of: bank_account, card, or crypto_wallet. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The type specific details of the bank account payout method. /// @@ -36,5 +28,13 @@ public class OutboundSetupIntentCreatePayoutMethodDataOptions : INestedOptions [JsonProperty("crypto_wallet")] [STJS.JsonPropertyName("crypto_wallet")] public OutboundSetupIntentCreatePayoutMethodDataCryptoWalletOptions CryptoWallet { get; set; } + + /// + /// Closed Enum. The type of payout method to be created. + /// One of: bank_account, card, or crypto_wallet. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataOptions.cs b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataOptions.cs index 22166e0e44..efd75dcaf0 100644 --- a/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataOptions.cs +++ b/src/Stripe.net/Services/V2/MoneyManagement/OutboundSetupIntents/OutboundSetupIntentUpdatePayoutMethodDataOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.MoneyManagement [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class OutboundSetupIntentUpdatePayoutMethodDataOptions : INestedOptions { - /// - /// Closed Enum. The type of payout method to be created/updated. - /// One of: bank_account, card, or crypto_wallet. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The type specific details of the bank account payout method. /// @@ -29,5 +21,13 @@ public class OutboundSetupIntentUpdatePayoutMethodDataOptions : INestedOptions [JsonProperty("card")] [STJS.JsonPropertyName("card")] public OutboundSetupIntentUpdatePayoutMethodDataCardOptions Card { get; set; } + + /// + /// Closed Enum. The type of payout method to be created/updated. + /// One of: bank_account, card, or crypto_wallet. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodDataOptions.cs b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodDataOptions.cs index 6854e950a0..19cceeafcf 100644 --- a/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodDataOptions.cs +++ b/src/Stripe.net/Services/V2/Payments/OffSessionPayments/OffSessionPaymentCreatePaymentMethodDataOptions.cs @@ -15,6 +15,14 @@ public class OffSessionPaymentCreatePaymentMethodDataOptions : INestedOptions [STJS.JsonPropertyName("billing_details")] public OffSessionPaymentCreatePaymentMethodDataBillingDetailsOptions BillingDetails { get; set; } + /// + /// Contains card details that can be used to create a card PaymentMethod for PCI compliant + /// users. + /// + [JsonProperty("card")] + [STJS.JsonPropertyName("card")] + public OffSessionPaymentCreatePaymentMethodDataCardOptions Card { get; set; } + /// /// The type of the PaymentMethod. An additional hash is included on the PaymentMethod with /// a name matching this value. It contains additional information specific to the @@ -23,13 +31,5 @@ public class OffSessionPaymentCreatePaymentMethodDataOptions : INestedOptions [JsonProperty("type")] [STJS.JsonPropertyName("type")] public string Type { get; set; } - - /// - /// Contains card details that can be used to create a card PaymentMethod for PCI compliant - /// users. - /// - [JsonProperty("card")] - [STJS.JsonPropertyName("card")] - public OffSessionPaymentCreatePaymentMethodDataCardOptions Card { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleCreateProductOptions.cs b/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleCreateProductOptions.cs index f39d135e48..657615d127 100644 --- a/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleCreateProductOptions.cs +++ b/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleCreateProductOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Tax [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ManualRuleCreateProductOptions : INestedOptions { - /// - /// The type of the product. - /// One of: licensed_item, metered_item, or tax_code. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The licensed item identifier. /// @@ -36,5 +28,13 @@ public class ManualRuleCreateProductOptions : INestedOptions [JsonProperty("tax_code")] [STJS.JsonPropertyName("tax_code")] public string TaxCode { get; set; } + + /// + /// The type of the product. + /// One of: licensed_item, metered_item, or tax_code. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleUpdateProductOptions.cs b/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleUpdateProductOptions.cs index b57644d5ec..14543b9095 100644 --- a/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleUpdateProductOptions.cs +++ b/src/Stripe.net/Services/V2/Tax/ManualRules/ManualRuleUpdateProductOptions.cs @@ -8,14 +8,6 @@ namespace Stripe.V2.Tax [STJS.JsonConverter(typeof(STJStripeOptionsConverter))] public class ManualRuleUpdateProductOptions : INestedOptions { - /// - /// The type of the product. - /// One of: licensed_item, metered_item, or tax_code. - /// - [JsonProperty("type")] - [STJS.JsonPropertyName("type")] - public string Type { get; set; } - /// /// The licensed item identifier. /// @@ -36,5 +28,13 @@ public class ManualRuleUpdateProductOptions : INestedOptions [JsonProperty("tax_code")] [STJS.JsonPropertyName("tax_code")] public string TaxCode { get; set; } + + /// + /// The type of the product. + /// One of: licensed_item, metered_item, or tax_code. + /// + [JsonProperty("type")] + [STJS.JsonPropertyName("type")] + public string Type { get; set; } } } diff --git a/src/StripeTests/Services/GeneratedExamplesTest.cs b/src/StripeTests/Services/GeneratedExamplesTest.cs index 40879bb6ba..d290323451 100644 --- a/src/StripeTests/Services/GeneratedExamplesTest.cs +++ b/src/StripeTests/Services/GeneratedExamplesTest.cs @@ -723,7 +723,7 @@ public void TestCoreEventsGet() HttpMethod.Get, "/v2/core/events/ll_123", HttpStatusCode.OK, - "{\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"reason\":{\"type\":\"request\",\"request\":{\"client\":{\"type\":\"api_key\",\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{}},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"}},\"type\":\"type\"}"); + "{\"object\":\"v2.core.event\",\"changes\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"context\":\"context\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"reason\":{\"request\":{\"client\":{\"api_key\":{\"id\":\"obj_123\"},\"dashboard_user\":{\"email\":\"email\",\"ip_address\":\"ip_address\",\"machine_identifier\":\"machine_identifier\"},\"stripe_action\":{},\"type\":\"api_key\"},\"id\":\"obj_123\",\"idempotency_key\":\"idempotency_key\"},\"type\":\"request\"},\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.Core.Event result = service.Get("ll_123"); @@ -6162,7 +6162,7 @@ public void TestV2BillingBillSettingGet() HttpMethod.Get, "/v2/billing/bill_settings", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings; Stripe.V2.StripeList billSettings = service @@ -6177,7 +6177,7 @@ public void TestV2BillingBillSettingPost() HttpMethod.Post, "/v2/billing/bill_settings", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var options = new Stripe.V2.Billing.BillSettingCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings; @@ -6192,7 +6192,7 @@ public void TestV2BillingBillSettingGet2() HttpMethod.Get, "/v2/billing/bill_settings/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings; Stripe.V2.Billing.BillSetting billSetting = service.Get("id_123"); @@ -6208,7 +6208,7 @@ public void TestV2BillingBillSettingPost2() HttpMethod.Post, "/v2/billing/bill_settings/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.bill_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.bill_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var options = new Stripe.V2.Billing.BillSettingUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings; @@ -6227,7 +6227,7 @@ public void TestV2BillingBillSettingsVersionGet() HttpMethod.Get, "/v2/billing/bill_settings/bill_setting_id_123/versions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.bill_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings.Versions; Stripe.V2.StripeList billSettingVersions = service @@ -6244,7 +6244,7 @@ public void TestV2BillingBillSettingsVersionGet2() HttpMethod.Get, "/v2/billing/bill_settings/bill_setting_id_123/versions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.bill_setting_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.bill_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.BillSettings.Versions; Stripe.V2.Billing.BillSettingVersion billSettingVersion = service @@ -6261,7 +6261,7 @@ public void TestV2BillingCadenceGet() HttpMethod.Get, "/v2/billing/cadences", (HttpStatusCode)200, - "{\"data\":[{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences; Stripe.V2.StripeList cadences = service @@ -6276,13 +6276,11 @@ public void TestV2BillingCadencePost() HttpMethod.Post, "/v2/billing/cadences", (HttpStatusCode)200, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}"); var options = new Stripe.V2.Billing.CadenceCreateOptions { BillingCycle = new Stripe.V2.Billing.CadenceCreateBillingCycleOptions { - IntervalCount = 797691627, - Type = "week", Day = new Stripe.V2.Billing.CadenceCreateBillingCycleDayOptions { Time = new Stripe.V2.Billing.CadenceCreateBillingCycleDayTimeOptions @@ -6292,6 +6290,7 @@ public void TestV2BillingCadencePost() Second = 906279820, }, }, + IntervalCount = 797691627, Month = new Stripe.V2.Billing.CadenceCreateBillingCycleMonthOptions { DayOfMonth = 1361669285, @@ -6303,6 +6302,7 @@ public void TestV2BillingCadencePost() Second = 906279820, }, }, + Type = "week", Week = new Stripe.V2.Billing.CadenceCreateBillingCycleWeekOptions { DayOfWeek = 43636807, @@ -6343,7 +6343,7 @@ public void TestV2BillingCadenceGet2() HttpMethod.Get, "/v2/billing/cadences/id_123", (HttpStatusCode)200, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences; Stripe.V2.Billing.Cadence cadence = service.Get("id_123"); @@ -6357,7 +6357,7 @@ public void TestV2BillingCadencePost2() HttpMethod.Post, "/v2/billing/cadences/id_123", (HttpStatusCode)200, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}"); var options = new Stripe.V2.Billing.CadenceUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences; @@ -6374,7 +6374,7 @@ public void TestV2BillingCadencePost3() HttpMethod.Post, "/v2/billing/cadences/id_123/cancel", (HttpStatusCode)200, - "{\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence\",\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.cadence\",\"billing_cycle\":{\"interval_count\":797691627,\"type\":\"week\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payer\":{\"billing_profile\":\"billing_profile\",\"type\":\"customer\"},\"status\":\"active\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences; Stripe.V2.Billing.Cadence cadence = service.Cancel("id_123"); @@ -6390,7 +6390,7 @@ public void TestV2BillingCadencesSpendModifierRuleGet() HttpMethod.Get, "/v2/billing/cadences/cadence_id_123/spend_modifier_rules", (HttpStatusCode)200, - "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence_spend_modifier\",\"type\":\"max_billing_period_spend\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.cadence_spend_modifier\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"max_billing_period_spend\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences.SpendModifierRules; Stripe.V2.StripeList cadenceSpendModifiers = service @@ -6407,7 +6407,7 @@ public void TestV2BillingCadencesSpendModifierRuleGet2() HttpMethod.Get, "/v2/billing/cadences/cadence_id_123/spend_modifier_rules/id_123", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.cadence_spend_modifier\",\"type\":\"max_billing_period_spend\",\"livemode\":true}"); + "{\"object\":\"v2.billing.cadence_spend_modifier\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"max_billing_period_spend\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Cadences.SpendModifierRules; Stripe.V2.Billing.CadenceSpendModifier cadenceSpendModifier = service @@ -6424,7 +6424,7 @@ public void TestV2BillingCollectionSettingGet() HttpMethod.Get, "/v2/billing/collection_settings", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings; Stripe.V2.StripeList collectionSettings = service @@ -6441,7 +6441,7 @@ public void TestV2BillingCollectionSettingPost() HttpMethod.Post, "/v2/billing/collection_settings", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var options = new Stripe.V2.Billing.CollectionSettingCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings; @@ -6459,7 +6459,7 @@ public void TestV2BillingCollectionSettingGet2() HttpMethod.Get, "/v2/billing/collection_settings/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings; Stripe.V2.Billing.CollectionSetting collectionSetting = service.Get( @@ -6476,7 +6476,7 @@ public void TestV2BillingCollectionSettingPost2() HttpMethod.Post, "/v2/billing/collection_settings/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"object\":\"v2.billing.collection_setting\",\"livemode\":true}"); + "{\"object\":\"v2.billing.collection_setting\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"latest_version\":\"latest_version\",\"live_version\":\"live_version\",\"livemode\":true}"); var options = new Stripe.V2.Billing.CollectionSettingUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings; @@ -6494,7 +6494,7 @@ public void TestV2BillingCollectionSettingsVersionGet() HttpMethod.Get, "/v2/billing/collection_settings/collection_setting_id_123/versions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.collection_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings.Versions; Stripe.V2.StripeList collectionSettingVersions = service @@ -6511,7 +6511,7 @@ public void TestV2BillingCollectionSettingsVersionGet2() HttpMethod.Get, "/v2/billing/collection_settings/collection_setting_id_123/versions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.collection_setting_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.collection_setting_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CollectionSettings.Versions; Stripe.V2.Billing.CollectionSettingVersion collectionSettingVersion = service @@ -6528,7 +6528,7 @@ public void TestV2BillingCustomPricingUnitGet() HttpMethod.Get, "/v2/billing/custom_pricing_units", (HttpStatusCode)200, - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CustomPricingUnits; Stripe.V2.StripeList customPricingUnits = service @@ -6545,7 +6545,7 @@ public void TestV2BillingCustomPricingUnitPost() HttpMethod.Post, "/v2/billing/custom_pricing_units", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.CustomPricingUnitCreateOptions { DisplayName = "display_name", @@ -6566,7 +6566,7 @@ public void TestV2BillingCustomPricingUnitGet2() HttpMethod.Get, "/v2/billing/custom_pricing_units/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CustomPricingUnits; Stripe.V2.Billing.CustomPricingUnit customPricingUnit = service.Get( @@ -6583,7 +6583,7 @@ public void TestV2BillingCustomPricingUnitPost2() HttpMethod.Post, "/v2/billing/custom_pricing_units/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.custom_pricing_unit\",\"livemode\":true}"); + "{\"object\":\"v2.billing.custom_pricing_unit\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.CustomPricingUnitUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.CustomPricingUnits; @@ -6601,7 +6601,7 @@ public void TestV2BillingIntentGet() HttpMethod.Get, "/v2/billing/intents", (HttpStatusCode)200, - "{\"data\":[{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.StripeList intents = service @@ -6616,16 +6616,21 @@ public void TestV2BillingIntentPost() HttpMethod.Post, "/v2/billing/intents", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var options = new Stripe.V2.Billing.IntentCreateOptions { Actions = new List { new Stripe.V2.Billing.IntentCreateActionOptions { - Type = "apply", Apply = new Stripe.V2.Billing.IntentCreateActionApplyOptions { + Discount = new Stripe.V2.Billing.IntentCreateActionApplyDiscountOptions + { + Coupon = "coupon", + PromotionCode = "promotion_code", + Type = "coupon", + }, EffectiveAt = new Stripe.V2.Billing.IntentCreateActionApplyEffectiveAtOptions { Timestamp = DateTimeOffset.Parse( @@ -6633,17 +6638,9 @@ public void TestV2BillingIntentPost() .UtcDateTime, Type = "current_billing_period_end", }, - Type = "discount", - Discount = new Stripe.V2.Billing.IntentCreateActionApplyDiscountOptions - { - Coupon = "coupon", - PromotionCode = "promotion_code", - Type = "coupon", - }, InvoiceDiscountRule = new Stripe.V2.Billing.IntentCreateActionApplyInvoiceDiscountRuleOptions { AppliesTo = "cadence", - Type = "percent_off", PercentOff = new Stripe.V2.Billing.IntentCreateActionApplyInvoiceDiscountRulePercentOffOptions { MaximumApplications = new Stripe.V2.Billing.IntentCreateActionApplyInvoiceDiscountRulePercentOffMaximumApplicationsOptions @@ -6652,28 +6649,30 @@ public void TestV2BillingIntentPost() }, PercentOff = 991934883.3333334M, }, + Type = "percent_off", }, SpendModifierRule = new Stripe.V2.Billing.IntentCreateActionApplySpendModifierRuleOptions { AppliesTo = "cadence", - Type = "max_billing_period_spend", MaxBillingPeriodSpend = new Stripe.V2.Billing.IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendOptions { Amount = new Stripe.V2.Billing.IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountOptions { - Type = "custom_pricing_unit", CustomPricingUnit = new Stripe.V2.Billing.IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendAmountCustomPricingUnitOptions { Id = "obj_123", Value = "value", }, + Type = "custom_pricing_unit", }, CustomPricingUnitOverageRate = new Stripe.V2.Billing.IntentCreateActionApplySpendModifierRuleMaxBillingPeriodSpendCustomPricingUnitOverageRateOptions { Id = "obj_123", }, }, + Type = "max_billing_period_spend", }, + Type = "discount", }, Deactivate = new Stripe.V2.Billing.IntentCreateActionDeactivateOptions { @@ -6698,11 +6697,11 @@ public void TestV2BillingIntentPost() { new Stripe.V2.Billing.IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions { - Type = "license_fee", LicenseFee = new Stripe.V2.Billing.IntentCreateActionDeactivatePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions { CreditProrationBehavior = "prorated", }, + Type = "license_fee", }, }, }, @@ -6726,9 +6725,9 @@ public void TestV2BillingIntentPost() { new Stripe.V2.Billing.IntentCreateActionModifyPricingPlanSubscriptionDetailsComponentConfigurationOptions { - Quantity = 1285004149, LookupKey = "lookup_key", PricingPlanComponent = "pricing_plan_component", + Quantity = 1285004149, }, }, NewPricingPlan = "new_pricing_plan", @@ -6739,7 +6738,6 @@ public void TestV2BillingIntentPost() { new Stripe.V2.Billing.IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions { - Type = "license_fee", LicenseFee = new Stripe.V2.Billing.IntentCreateActionModifyPricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions { CreditProrationBehavior = "prorated", @@ -6749,6 +6747,7 @@ public void TestV2BillingIntentPost() { CreateBehavior = "none", }, + Type = "license_fee", }, }, }, @@ -6762,9 +6761,9 @@ public void TestV2BillingIntentPost() { Type = "current_billing_period_end", }, - Type = "invoice_discount_rule", InvoiceDiscountRule = "invoice_discount_rule", SpendModifierRule = "spend_modifier_rule", + Type = "invoice_discount_rule", }, Subscribe = new Stripe.V2.Billing.IntentCreateActionSubscribeOptions { @@ -6776,16 +6775,15 @@ public void TestV2BillingIntentPost() .UtcDateTime, Type = "current_billing_period_start", }, - Type = "pricing_plan_subscription_details", PricingPlanSubscriptionDetails = new Stripe.V2.Billing.IntentCreateActionSubscribePricingPlanSubscriptionDetailsOptions { ComponentConfigurations = new List { new Stripe.V2.Billing.IntentCreateActionSubscribePricingPlanSubscriptionDetailsComponentConfigurationOptions { - Quantity = 1285004149, LookupKey = "lookup_key", PricingPlanComponent = "pricing_plan_component", + Quantity = 1285004149, }, }, Metadata = new Dictionary @@ -6798,7 +6796,6 @@ public void TestV2BillingIntentPost() { new Stripe.V2.Billing.IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorOptions { - Type = "license_fee", LicenseFee = new Stripe.V2.Billing.IntentCreateActionSubscribePricingPlanSubscriptionDetailsOverridesPartialPeriodBehaviorLicenseFeeOptions { DebitProrationBehavior = "none", @@ -6807,12 +6804,14 @@ public void TestV2BillingIntentPost() { CreateBehavior = "none", }, + Type = "license_fee", }, }, }, PricingPlan = "pricing_plan", PricingPlanVersion = "pricing_plan_version", }, + Type = "pricing_plan_subscription_details", V1SubscriptionDetails = new Stripe.V2.Billing.IntentCreateActionSubscribeV1SubscriptionDetailsOptions { Description = "description", @@ -6834,6 +6833,7 @@ public void TestV2BillingIntentPost() }, }, }, + Type = "apply", }, }, Currency = "usd", @@ -6851,7 +6851,7 @@ public void TestV2BillingIntentGet2() HttpMethod.Get, "/v2/billing/intents/id_123", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.Billing.Intent intent = service.Get("id_123"); @@ -6865,7 +6865,7 @@ public void TestV2BillingIntentPost2() HttpMethod.Post, "/v2/billing/intents/id_123/cancel", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.Billing.Intent intent = service.Cancel("id_123"); @@ -6881,7 +6881,7 @@ public void TestV2BillingIntentPost3() HttpMethod.Post, "/v2/billing/intents/id_123/commit", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.Billing.Intent intent = service.Commit("id_123"); @@ -6897,7 +6897,7 @@ public void TestV2BillingIntentPost4() HttpMethod.Post, "/v2/billing/intents/id_123/release_reservation", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.Billing.Intent intent = service.ReleaseReservation( @@ -6914,7 +6914,7 @@ public void TestV2BillingIntentPost5() HttpMethod.Post, "/v2/billing/intents/id_123/reserve", (HttpStatusCode)200, - "{\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent\",\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"},\"livemode\":true}"); + "{\"object\":\"v2.billing.intent\",\"amount_details\":{\"currency\":\"usd\",\"discount\":\"discount\",\"shipping\":\"shipping\",\"subtotal\":\"subtotal\",\"tax\":\"tax\",\"total\":\"total\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"status_transitions\":{\"expires_at\":\"1970-01-10T15:36:51.170Z\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents; Stripe.V2.Billing.Intent intent = service.Reserve("id_123"); @@ -6930,7 +6930,7 @@ public void TestV2BillingIntentsActionGet() HttpMethod.Get, "/v2/billing/intents/intent_id_123/actions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.intent_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"apply\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents.Actions; Stripe.V2.StripeList intentActions = service @@ -6947,7 +6947,7 @@ public void TestV2BillingIntentsActionGet2() HttpMethod.Get, "/v2/billing/intents/intent_id_123/actions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.intent_action\",\"type\":\"apply\",\"livemode\":true}"); + "{\"object\":\"v2.billing.intent_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"apply\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Intents.Actions; Stripe.V2.Billing.IntentAction intentAction = service.Get( @@ -6965,7 +6965,7 @@ public void TestV2BillingLicenseFeeGet() HttpMethod.Get, "/v2/billing/license_fees", (HttpStatusCode)200, - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}", + "{\"data\":[{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}", "lookup_keys[0]=lookup_keys"); var options = new Stripe.V2.Billing.LicenseFeeListOptions { @@ -6988,7 +6988,7 @@ public void TestV2BillingLicenseFeePost() HttpMethod.Post, "/v2/billing/license_fees", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}"); var options = new Stripe.V2.Billing.LicenseFeeCreateOptions { Currency = "usd", @@ -7011,7 +7011,7 @@ public void TestV2BillingLicenseFeeGet2() HttpMethod.Get, "/v2/billing/license_fees/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicenseFees; Stripe.V2.Billing.LicenseFee licenseFee = service.Get("id_123"); @@ -7027,7 +7027,7 @@ public void TestV2BillingLicenseFeePost2() HttpMethod.Post, "/v2/billing/license_fees/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true},\"live_version\":\"live_version\",\"object\":\"v2.billing.license_fee\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.license_fee\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"licensed_item\":{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"tiers\":[{}]}"); var options = new Stripe.V2.Billing.LicenseFeeUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicenseFees; @@ -7046,7 +7046,7 @@ public void TestV2BillingLicenseFeesVersionGet() HttpMethod.Get, "/v2/billing/license_fees/license_fee_id_123/versions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.license_fee_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"livemode\":true,\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicenseFees.Versions; Stripe.V2.StripeList licenseFeeVersions = service @@ -7063,7 +7063,7 @@ public void TestV2BillingLicenseFeesVersionGet2() HttpMethod.Get, "/v2/billing/license_fees/license_fee_id_123/versions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"object\":\"v2.billing.license_fee_version\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.license_fee_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"license_fee_id\":\"license_fee_id\",\"livemode\":true,\"tiers\":[{}]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicenseFees.Versions; Stripe.V2.Billing.LicenseFeeVersion licenseFeeVersion = service.Get( @@ -7081,7 +7081,7 @@ public void TestV2BillingLicensedItemGet() HttpMethod.Get, "/v2/billing/licensed_items", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicensedItems; Stripe.V2.StripeList licensedItems = service @@ -7096,7 +7096,7 @@ public void TestV2BillingLicensedItemPost() HttpMethod.Post, "/v2/billing/licensed_items", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.LicensedItemCreateOptions { DisplayName = "display_name", @@ -7115,7 +7115,7 @@ public void TestV2BillingLicensedItemGet2() HttpMethod.Get, "/v2/billing/licensed_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicensedItems; Stripe.V2.Billing.LicensedItem licensedItem = service.Get("id_123"); @@ -7131,7 +7131,7 @@ public void TestV2BillingLicensedItemPost2() HttpMethod.Post, "/v2/billing/licensed_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.licensed_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.licensed_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.LicensedItemUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.LicensedItems; @@ -7150,7 +7150,7 @@ public void TestV2BillingMeterEventPost() HttpMethod.Post, "/v2/billing/meter_events", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"object\":\"v2.billing.meter_event\",\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\",\"livemode\":true}"); + "{\"object\":\"v2.billing.meter_event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"identifier\":\"identifier\",\"livemode\":true,\"payload\":{\"key\":\"payload\"},\"timestamp\":\"1970-01-01T15:18:46.294Z\"}"); var options = new Stripe.V2.Billing.MeterEventCreateOptions { EventName = "event_name", @@ -7172,7 +7172,7 @@ public void TestV2BillingMeterEventAdjustmentPost() HttpMethod.Post, "/v2/billing/meter_event_adjustments", (HttpStatusCode)200, - "{\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_adjustment\",\"status\":\"complete\",\"type\":\"cancel\",\"livemode\":true}"); + "{\"object\":\"v2.billing.meter_event_adjustment\",\"cancel\":{\"identifier\":\"identifier\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"event_name\":\"event_name\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"complete\",\"type\":\"cancel\"}"); var options = new Stripe.V2.Billing.MeterEventAdjustmentCreateOptions { Cancel = new Stripe.V2.Billing.MeterEventAdjustmentCreateCancelOptions @@ -7198,7 +7198,7 @@ public void TestV2BillingMeterEventSessionPost() HttpMethod.Post, "/v2/billing/meter_event_session", (HttpStatusCode)200, - "{\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.meter_event_session\",\"livemode\":true}"); + "{\"object\":\"v2.billing.meter_event_session\",\"authentication_token\":\"authentication_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.MeterEventSessionCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.MeterEventSession; @@ -7250,7 +7250,7 @@ public void TestV2BillingMeteredItemGet() HttpMethod.Get, "/v2/billing/metered_items", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.MeteredItems; Stripe.V2.StripeList meteredItems = service @@ -7265,7 +7265,7 @@ public void TestV2BillingMeteredItemPost() HttpMethod.Post, "/v2/billing/metered_items", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}"); var options = new Stripe.V2.Billing.MeteredItemCreateOptions { DisplayName = "display_name", @@ -7284,7 +7284,7 @@ public void TestV2BillingMeteredItemGet2() HttpMethod.Get, "/v2/billing/metered_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.MeteredItems; Stripe.V2.Billing.MeteredItem meteredItem = service.Get("id_123"); @@ -7300,7 +7300,7 @@ public void TestV2BillingMeteredItemPost2() HttpMethod.Post, "/v2/billing/metered_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]}"); var options = new Stripe.V2.Billing.MeteredItemUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.MeteredItems; @@ -7319,7 +7319,7 @@ public void TestV2BillingOneTimeItemGet() HttpMethod.Get, "/v2/billing/one_time_items", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.OneTimeItems; Stripe.V2.StripeList oneTimeItems = service @@ -7334,7 +7334,7 @@ public void TestV2BillingOneTimeItemPost() HttpMethod.Post, "/v2/billing/one_time_items", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.OneTimeItemCreateOptions { DisplayName = "display_name", @@ -7352,7 +7352,7 @@ public void TestV2BillingOneTimeItemGet2() HttpMethod.Get, "/v2/billing/one_time_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.OneTimeItems; Stripe.V2.Billing.OneTimeItem oneTimeItem = service.Get("id_123"); @@ -7368,7 +7368,7 @@ public void TestV2BillingOneTimeItemPost2() HttpMethod.Post, "/v2/billing/one_time_items/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true}"); + "{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Billing.OneTimeItemUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.OneTimeItems; @@ -7387,7 +7387,7 @@ public void TestV2BillingPricingPlanGet() HttpMethod.Get, "/v2/billing/pricing_plans", (HttpStatusCode)200, - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans; Stripe.V2.StripeList pricingPlans = service @@ -7402,7 +7402,7 @@ public void TestV2BillingPricingPlanPost() HttpMethod.Post, "/v2/billing/pricing_plans", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}"); var options = new Stripe.V2.Billing.PricingPlanCreateOptions { Currency = "usd", @@ -7422,7 +7422,7 @@ public void TestV2BillingPricingPlanGet2() HttpMethod.Get, "/v2/billing/pricing_plans/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans; Stripe.V2.Billing.PricingPlan pricingPlan = service.Get("id_123"); @@ -7438,7 +7438,7 @@ public void TestV2BillingPricingPlanPost2() HttpMethod.Post, "/v2/billing/pricing_plans/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan\",\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true,\"tax_behavior\":\"exclusive\"}"); var options = new Stripe.V2.Billing.PricingPlanUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans; @@ -7457,7 +7457,7 @@ public void TestV2BillingPricingPlansComponentGet() HttpMethod.Get, "/v2/billing/pricing_plans/pricing_plan_id_123/components", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans.Components; Stripe.V2.StripeList pricingPlanComponents = service @@ -7474,7 +7474,7 @@ public void TestV2BillingPricingPlansComponentPost() HttpMethod.Post, "/v2/billing/pricing_plans/pricing_plan_id_123/components", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}"); var options = new Stripe.V2.Billing.PricingPlans.ComponentCreateOptions { Type = "license_fee", @@ -7513,7 +7513,7 @@ public void TestV2BillingPricingPlansComponentGet2() HttpMethod.Get, "/v2/billing/pricing_plans/pricing_plan_id_123/components/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans.Components; Stripe.V2.Billing.PricingPlanComponent pricingPlanComponent = service @@ -7530,7 +7530,7 @@ public void TestV2BillingPricingPlansComponentPost2() HttpMethod.Post, "/v2/billing/pricing_plans/pricing_plan_id_123/components/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_component\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_component\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"type\":\"license_fee\"}"); var options = new Stripe.V2.Billing.PricingPlans.ComponentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans.Components; @@ -7548,7 +7548,7 @@ public void TestV2BillingPricingPlansVersionGet() HttpMethod.Get, "/v2/billing/pricing_plans/pricing_plan_id_123/versions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.pricing_plan_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans.Versions; Stripe.V2.StripeList pricingPlanVersions = service @@ -7565,7 +7565,7 @@ public void TestV2BillingPricingPlansVersionGet2() HttpMethod.Get, "/v2/billing/pricing_plans/pricing_plan_id_123/versions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_version\",\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\",\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"start_date\":\"1970-01-19T05:07:09.589Z\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlans.Versions; Stripe.V2.Billing.PricingPlanVersion pricingPlanVersion = service @@ -7582,7 +7582,7 @@ public void TestV2BillingPricingPlanSubscriptionGet() HttpMethod.Get, "/v2/billing/pricing_plan_subscriptions", (HttpStatusCode)200, - "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlanSubscriptions; Stripe.V2.StripeList pricingPlanSubscriptions = service @@ -7599,7 +7599,7 @@ public void TestV2BillingPricingPlanSubscriptionGet2() HttpMethod.Get, "/v2/billing/pricing_plan_subscriptions/id_123", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlanSubscriptions; Stripe.V2.Billing.PricingPlanSubscription pricingPlanSubscription = service @@ -7616,7 +7616,7 @@ public void TestV2BillingPricingPlanSubscriptionPost() HttpMethod.Post, "/v2/billing/pricing_plan_subscriptions/id_123", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}"); var options = new Stripe.V2.Billing.PricingPlanSubscriptionUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlanSubscriptions; @@ -7634,7 +7634,7 @@ public void TestV2BillingPricingPlanSubscriptionPost2() HttpMethod.Post, "/v2/billing/pricing_plan_subscriptions/id_123/remove_discounts", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.pricing_plan_subscription\",\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{},\"livemode\":true}"); + "{\"object\":\"v2.billing.pricing_plan_subscription\",\"billing_cadence\":\"billing_cadence\",\"collection_status\":\"past_due\",\"collection_status_transitions\":{},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"pricing_plan\":\"pricing_plan\",\"pricing_plan_version\":\"pricing_plan_version\",\"servicing_status\":\"pending\",\"servicing_status_transitions\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.PricingPlanSubscriptions; Stripe.V2.Billing.PricingPlanSubscription pricingPlanSubscription = service @@ -7651,7 +7651,7 @@ public void TestV2BillingProfileGet() HttpMethod.Get, "/v2/billing/profiles", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}", + "{\"data\":[{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}", "lookup_keys[0]=lookup_keys"); var options = new Stripe.V2.Billing.ProfileListOptions { @@ -7674,7 +7674,7 @@ public void TestV2BillingProfilePost() HttpMethod.Post, "/v2/billing/profiles", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}"); var options = new Stripe.V2.Billing.ProfileCreateOptions { Customer = "customer", @@ -7692,7 +7692,7 @@ public void TestV2BillingProfileGet2() HttpMethod.Get, "/v2/billing/profiles/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Profiles; Stripe.V2.Billing.Profile profile = service.Get("id_123"); @@ -7706,7 +7706,7 @@ public void TestV2BillingProfilePost2() HttpMethod.Post, "/v2/billing/profiles/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.profile\",\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.billing.profile\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"active\"}"); var options = new Stripe.V2.Billing.ProfileUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.Profiles; @@ -7723,7 +7723,7 @@ public void TestV2BillingRateCardGet() HttpMethod.Get, "/v2/billing/rate_cards", (HttpStatusCode)200, - "{\"data\":[{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards; Stripe.V2.StripeList rateCards = service @@ -7738,7 +7738,7 @@ public void TestV2BillingRateCardPost() HttpMethod.Post, "/v2/billing/rate_cards", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}"); var options = new Stripe.V2.Billing.RateCardCreateOptions { Currency = "usd", @@ -7760,7 +7760,7 @@ public void TestV2BillingRateCardGet2() HttpMethod.Get, "/v2/billing/rate_cards/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards; Stripe.V2.Billing.RateCard rateCard = service.Get("id_123"); @@ -7774,7 +7774,7 @@ public void TestV2BillingRateCardPost2() HttpMethod.Post, "/v2/billing/rate_cards/id_123", (HttpStatusCode)200, - "{\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"object\":\"v2.billing.rate_card\",\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card\",\"active\":true,\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"live_version\":\"live_version\",\"livemode\":true,\"service_cycle\":{\"interval\":\"month\",\"interval_count\":797691627},\"tax_behavior\":\"exclusive\"}"); var options = new Stripe.V2.Billing.RateCardUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards; @@ -7793,7 +7793,7 @@ public void TestV2BillingRateCardPost3() HttpMethod.Post, "/v2/billing/rate_cards/id_123/modify_rates", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}"); var options = new Stripe.V2.Billing.RateCardModifyRatesOptions { RatesToCreate = new List @@ -7863,7 +7863,7 @@ public void TestV2BillingRateCardsCustomPricingUnitOverageRateGet() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client .V2 @@ -7884,7 +7884,7 @@ public void TestV2BillingRateCardsCustomPricingUnitOverageRatePost() HttpMethod.Post, "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}"); var options = new Stripe.V2.Billing.RateCards.CustomPricingUnitOverageRateCreateOptions { CustomPricingUnit = "custom_pricing_unit", @@ -7933,7 +7933,7 @@ public void TestV2BillingRateCardsCustomPricingUnitOverageRateGet2() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/custom_pricing_unit_overage_rates/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"one_time_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"object\":\"v2.billing.one_time_item\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_custom_pricing_unit_overage_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"custom_pricing_unit\":\"custom_pricing_unit\",\"id\":\"obj_123\",\"livemode\":true,\"one_time_item\":{\"object\":\"v2.billing.one_time_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"livemode\":true},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"unit_amount\":\"unit_amount\"}"); var client = new StripeClient(this.Requestor); var service = client .V2 @@ -7954,7 +7954,7 @@ public void TestV2BillingRateCardsRateGet() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/rates", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards.Rates; Stripe.V2.StripeList rateCardRates = service @@ -7971,7 +7971,7 @@ public void TestV2BillingRateCardsRatePost() HttpMethod.Post, "/v2/billing/rate_cards/rate_card_id_123/rates", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}"); var options = new Stripe.V2.Billing.RateCards.RateCreateOptions { MeteredItem = "metered_item", @@ -8011,7 +8011,7 @@ public void TestV2BillingRateCardsRateGet2() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/rates/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"metered_item\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}],\"object\":\"v2.billing.metered_item\",\"livemode\":true},\"object\":\"v2.billing.rate_card_rate\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}],\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_rate\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"metered_item\":{\"object\":\"v2.billing.metered_item\",\"created\":\"1970-01-12T21:42:34.472Z\",\"display_name\":\"display_name\",\"id\":\"obj_123\",\"invoice_presentation_dimensions\":[\"invoice_presentation_dimensions\"],\"livemode\":true,\"meter\":\"meter\",\"meter_segment_conditions\":[{\"dimension\":\"dimension\",\"value\":\"value\"}]},\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"tiers\":[{}]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards.Rates; Stripe.V2.Billing.RateCardRate rateCardRate = service.Get( @@ -8029,7 +8029,7 @@ public void TestV2BillingRateCardsVersionGet() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/versions", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards.Versions; Stripe.V2.StripeList rateCardVersions = service @@ -8046,7 +8046,7 @@ public void TestV2BillingRateCardsVersionGet2() HttpMethod.Get, "/v2/billing/rate_cards/rate_card_id_123/versions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_version\",\"rate_card_id\":\"rate_card_id\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_version\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card_id\":\"rate_card_id\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCards.Versions; Stripe.V2.Billing.RateCardVersion rateCardVersion = service.Get( @@ -8064,7 +8064,7 @@ public void TestV2BillingRateCardSubscriptionGet() HttpMethod.Get, "/v2/billing/rate_card_subscriptions", (HttpStatusCode)200, - "{\"data\":[{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCardSubscriptions; Stripe.V2.StripeList rateCardSubscriptions = service @@ -8081,7 +8081,7 @@ public void TestV2BillingRateCardSubscriptionPost() HttpMethod.Post, "/v2/billing/rate_card_subscriptions", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}"); var options = new Stripe.V2.Billing.RateCardSubscriptionCreateOptions { BillingCadence = "billing_cadence", @@ -8103,7 +8103,7 @@ public void TestV2BillingRateCardSubscriptionGet2() HttpMethod.Get, "/v2/billing/rate_card_subscriptions/id_123", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCardSubscriptions; Stripe.V2.Billing.RateCardSubscription rateCardSubscription = service @@ -8120,7 +8120,7 @@ public void TestV2BillingRateCardSubscriptionPost2() HttpMethod.Post, "/v2/billing/rate_card_subscriptions/id_123", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}"); var options = new Stripe.V2.Billing.RateCardSubscriptionUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCardSubscriptions; @@ -8138,7 +8138,7 @@ public void TestV2BillingRateCardSubscriptionPost3() HttpMethod.Post, "/v2/billing/rate_card_subscriptions/id_123/cancel", (HttpStatusCode)200, - "{\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.rate_card_subscription\",\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\",\"livemode\":true}"); + "{\"object\":\"v2.billing.rate_card_subscription\",\"billing_cadence\":\"billing_cadence\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"rate_card\":\"rate_card\",\"rate_card_version\":\"rate_card_version\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.RateCardSubscriptions; Stripe.V2.Billing.RateCardSubscription rateCardSubscription = service @@ -8155,7 +8155,7 @@ public void TestV2BillingServiceActionPost() HttpMethod.Post, "/v2/billing/service_actions", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}"); + "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}"); var options = new Stripe.V2.Billing.ServiceActionCreateOptions { ServiceInterval = "month", @@ -8176,7 +8176,7 @@ public void TestV2BillingServiceActionGet() HttpMethod.Get, "/v2/billing/service_actions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}"); + "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.ServiceActions; Stripe.V2.Billing.ServiceAction serviceAction = service.Get( @@ -8193,7 +8193,7 @@ public void TestV2BillingServiceActionPost2() HttpMethod.Post, "/v2/billing/service_actions/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.billing.service_action\",\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\",\"livemode\":true}"); + "{\"object\":\"v2.billing.service_action\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"service_interval\":\"month\",\"service_interval_count\":1375336415,\"type\":\"credit_grant\"}"); var options = new Stripe.V2.Billing.ServiceActionUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Billing.ServiceActions; @@ -8212,7 +8212,7 @@ public void TestV2CoreAccountGet() HttpMethod.Get, "/v2/core/accounts", (HttpStatusCode)200, - "{\"data\":[{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts; Stripe.V2.StripeList accounts = service @@ -8227,7 +8227,7 @@ public void TestV2CoreAccountPost() HttpMethod.Post, "/v2/core/accounts", (HttpStatusCode)200, - "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Core.AccountCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts; @@ -8242,7 +8242,7 @@ public void TestV2CoreAccountGet2() HttpMethod.Get, "/v2/core/accounts/id_123", (HttpStatusCode)200, - "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts; Stripe.V2.Core.Account account = service.Get("id_123"); @@ -8256,7 +8256,7 @@ public void TestV2CoreAccountPost2() HttpMethod.Post, "/v2/core/accounts/id_123", (HttpStatusCode)200, - "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Core.AccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts; @@ -8271,7 +8271,7 @@ public void TestV2CoreAccountPost3() HttpMethod.Post, "/v2/core/accounts/id_123/close", (HttpStatusCode)200, - "{\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account\",\"livemode\":true}"); + "{\"object\":\"v2.core.account\",\"applied_configurations\":[\"card_creator\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts; Stripe.V2.Core.Account account = service.Close("id_123"); @@ -8287,7 +8287,7 @@ public void TestV2CoreAccountsPersonGet() HttpMethod.Get, "/v2/core/accounts/account_id_123/persons", (HttpStatusCode)200, - "{\"data\":[{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.Persons; Stripe.V2.StripeList accountPersons = service @@ -8304,7 +8304,7 @@ public void TestV2CoreAccountsPersonPost() HttpMethod.Post, "/v2/core/accounts/account_id_123/persons", (HttpStatusCode)200, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var options = new Stripe.V2.Core.Accounts.PersonCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.Persons; @@ -8341,7 +8341,7 @@ public void TestV2CoreAccountsPersonGet2() HttpMethod.Get, "/v2/core/accounts/account_id_123/persons/id_123", (HttpStatusCode)200, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.Persons; Stripe.V2.Core.AccountPerson accountPerson = service.Get( @@ -8359,7 +8359,7 @@ public void TestV2CoreAccountsPersonPost2() HttpMethod.Post, "/v2/core/accounts/account_id_123/persons/id_123", (HttpStatusCode)200, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.account_person\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.account_person\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var options = new Stripe.V2.Core.Accounts.PersonUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.Persons; @@ -8379,7 +8379,7 @@ public void TestV2CoreAccountsPersonTokenPost() HttpMethod.Post, "/v2/core/accounts/account_id_123/person_tokens", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + "{\"object\":\"v2.core.account_person_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}"); var options = new Stripe.V2.Core.Accounts.PersonTokenCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.PersonTokens; @@ -8397,7 +8397,7 @@ public void TestV2CoreAccountsPersonTokenGet() HttpMethod.Get, "/v2/core/accounts/account_id_123/person_tokens/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_person_token\",\"used\":true}"); + "{\"object\":\"v2.core.account_person_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Accounts.PersonTokens; Stripe.V2.Core.AccountPersonToken accountPersonToken = service.Get( @@ -8415,7 +8415,7 @@ public void TestV2CoreAccountEvaluationPost() HttpMethod.Post, "/v2/core/account_evaluations", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"evaluations_triggered\":[\"fraudulent_website\"],\"id\":\"obj_123\",\"object\":\"v2.core.account_evaluation\",\"livemode\":true}"); + "{\"object\":\"v2.core.account_evaluation\",\"created\":\"1970-01-12T21:42:34.472Z\",\"evaluations_triggered\":[\"fraudulent_website\"],\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Core.AccountEvaluationCreateOptions { Signals = new List { "fraudulent_website" }, @@ -8434,13 +8434,12 @@ public void TestV2CoreAccountLinkPost() HttpMethod.Post, "/v2/core/account_links", (HttpStatusCode)200, - "{\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"object\":\"v2.core.account_link\",\"url\":\"url\",\"use_case\":{\"type\":\"recipient_onboarding\"},\"livemode\":true}"); + "{\"object\":\"v2.core.account_link\",\"account\":\"account\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"livemode\":true,\"url\":\"url\",\"use_case\":{\"type\":\"recipient_onboarding\"}}"); var options = new Stripe.V2.Core.AccountLinkCreateOptions { Account = "account", UseCase = new Stripe.V2.Core.AccountLinkCreateUseCaseOptions { - Type = "recipient_onboarding", AccountOnboarding = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingOptions { CollectionOptions = new Stripe.V2.Core.AccountLinkCreateUseCaseAccountOnboardingCollectionOptionsOptions @@ -8485,6 +8484,7 @@ public void TestV2CoreAccountLinkPost() RefreshUrl = "refresh_url", ReturnUrl = "return_url", }, + Type = "recipient_onboarding", }, }; var client = new StripeClient(this.Requestor); @@ -8500,7 +8500,7 @@ public void TestV2CoreAccountTokenPost() HttpMethod.Post, "/v2/core/account_tokens", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + "{\"object\":\"v2.core.account_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}"); var options = new Stripe.V2.Core.AccountTokenCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.AccountTokens; @@ -8515,7 +8515,7 @@ public void TestV2CoreAccountTokenGet() HttpMethod.Get, "/v2/core/account_tokens/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.account_token\",\"used\":true}"); + "{\"object\":\"v2.core.account_token\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"used\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.AccountTokens; Stripe.V2.Core.AccountToken accountToken = service.Get("id_123"); @@ -8531,7 +8531,7 @@ public void TestV2CoreBatchJobPost() HttpMethod.Post, "/v2/core/batch_jobs", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var options = new Stripe.V2.Core.BatchJobCreateOptions { Endpoint = new Stripe.V2.Core.BatchJobCreateEndpointOptions @@ -8558,7 +8558,7 @@ public void TestV2CoreBatchJobGet() HttpMethod.Get, "/v2/core/batch_jobs/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = service.Get("id_123"); @@ -8572,7 +8572,7 @@ public void TestV2CoreBatchJobPost2() HttpMethod.Post, "/v2/core/batch_jobs/id_123/cancel", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"object\":\"v2.core.batch_job\",\"skip_validation\":true,\"status\":\"batch_failed\",\"livemode\":true}"); + "{\"object\":\"v2.core.batch_job\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"maximum_rps\":1686015830,\"metadata\":{\"key\":\"metadata\"},\"skip_validation\":true,\"status\":\"batch_failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.BatchJobs; Stripe.V2.Core.BatchJob batchJob = service.Cancel("id_123"); @@ -8588,7 +8588,7 @@ public void TestV2CoreClaimableSandboxPost() HttpMethod.Post, "/v2/core/claimable_sandboxes", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\",\"livemode\":true}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); var options = new Stripe.V2.Core.ClaimableSandboxCreateOptions { EnableMcpAccess = true, @@ -8613,7 +8613,7 @@ public void TestV2CoreClaimableSandboxGet() HttpMethod.Get, "/v2/core/claimable_sandboxes/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.claimable_sandbox\",\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\",\"livemode\":true}"); + "{\"object\":\"v2.core.claimable_sandbox\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"prefill\":{\"country\":\"country\",\"email\":\"email\",\"name\":\"name\"},\"sandbox_details\":{\"account\":\"account\"},\"status\":\"claimed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.ClaimableSandboxes; Stripe.V2.Core.ClaimableSandbox claimableSandbox = service.Get( @@ -8630,7 +8630,7 @@ public void TestV2CoreConnectionSessionPost() HttpMethod.Post, "/v2/core/connection_sessions", (HttpStatusCode)200, - "{\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.connection_session\",\"livemode\":true}"); + "{\"object\":\"v2.core.connection_session\",\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var options = new Stripe.V2.Core.ConnectionSessionCreateOptions { Account = "account", @@ -8649,7 +8649,7 @@ public void TestV2CoreConnectionSessionGet() HttpMethod.Get, "/v2/core/connection_sessions/id_123", (HttpStatusCode)200, - "{\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.core.connection_session\",\"livemode\":true}"); + "{\"object\":\"v2.core.connection_session\",\"account\":\"account\",\"client_secret\":\"client_secret\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.ConnectionSessions; Stripe.V2.Core.ConnectionSession connectionSession = service.Get( @@ -8666,7 +8666,7 @@ public void TestV2CoreEventGet() HttpMethod.Get, "/v2/core/events", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.StripeList events = service.List(); @@ -8680,7 +8680,7 @@ public void TestV2CoreEventGet2() HttpMethod.Get, "/v2/core/events/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); + "{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Events; Stripe.V2.Core.Event result = service.Get("id_123"); @@ -8694,7 +8694,7 @@ public void TestV2CoreEventDestinationGet() HttpMethod.Get, "/v2/core/event_destinations", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.StripeList eventDestinations = service @@ -8709,7 +8709,7 @@ public void TestV2CoreEventDestinationPost() HttpMethod.Post, "/v2/core/event_destinations", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var options = new Stripe.V2.Core.EventDestinationCreateOptions { EnabledEvents = new List { "enabled_events" }, @@ -8747,7 +8747,7 @@ public void TestV2CoreEventDestinationGet2() HttpMethod.Get, "/v2/core/event_destinations/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Get( @@ -8764,7 +8764,7 @@ public void TestV2CoreEventDestinationPost2() HttpMethod.Post, "/v2/core/event_destinations/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var options = new Stripe.V2.Core.EventDestinationUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; @@ -8783,7 +8783,7 @@ public void TestV2CoreEventDestinationPost3() HttpMethod.Post, "/v2/core/event_destinations/id_123/disable", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Disable( @@ -8800,7 +8800,7 @@ public void TestV2CoreEventDestinationPost4() HttpMethod.Post, "/v2/core/event_destinations/id_123/enable", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.core.event_destination\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\",\"livemode\":true}"); + "{\"object\":\"v2.core.event_destination\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"enabled_events\":[\"enabled_events\"],\"event_payload\":\"thin\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"status\":\"disabled\",\"type\":\"amazon_eventbridge\",\"updated\":\"1970-01-03T17:07:10.277Z\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.EventDestination eventDestination = service.Enable( @@ -8817,7 +8817,7 @@ public void TestV2CoreEventDestinationPost5() HttpMethod.Post, "/v2/core/event_destinations/id_123/ping", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"object\":\"v2.core.event\",\"type\":\"type\"}"); + "{\"object\":\"v2.core.event\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"type\":\"type\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.EventDestinations; Stripe.V2.Core.Event result = service.Ping("id_123"); @@ -8833,7 +8833,7 @@ public void TestV2CoreVaultGbBankAccountGet() HttpMethod.Get, "/v2/core/vault/gb_bank_accounts", (HttpStatusCode)200, - "{\"data\":[{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.StripeList gbBankAccounts = service @@ -8850,7 +8850,7 @@ public void TestV2CoreVaultGbBankAccountPost() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var options = new Stripe.V2.Core.Vault.GbBankAccountCreateOptions { Currency = "usd", @@ -8871,7 +8871,7 @@ public void TestV2CoreVaultGbBankAccountGet2() HttpMethod.Get, "/v2/core/vault/gb_bank_accounts/id_123", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Get( @@ -8888,7 +8888,7 @@ public void TestV2CoreVaultGbBankAccountPost2() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/acknowledge_confirmation_of_payee", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service @@ -8905,7 +8905,7 @@ public void TestV2CoreVaultGbBankAccountPost3() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/archive", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service.Archive( @@ -8922,7 +8922,7 @@ public void TestV2CoreVaultGbBankAccountPost4() HttpMethod.Post, "/v2/core/vault/gb_bank_accounts/id_123/initiate_confirmation_of_payee", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.gb_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"livemode\":true}"); + "{\"object\":\"v2.core.vault.gb_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"confirmation_of_payee\":{\"result\":{\"created\":\"1970-01-12T21:42:34.472Z\",\"match_result\":\"unavailable\",\"matched\":{},\"message\":\"message\",\"provided\":{\"business_type\":\"personal\",\"name\":\"name\"}},\"status\":\"awaiting_acknowledgement\"},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"]}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.GbBankAccounts; Stripe.V2.Core.Vault.GbBankAccount gbBankAccount = service @@ -8939,7 +8939,7 @@ public void TestV2CoreVaultUsBankAccountGet() HttpMethod.Get, "/v2/core/vault/us_bank_accounts", (HttpStatusCode)200, - "{\"data\":[{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; Stripe.V2.StripeList usBankAccounts = service @@ -8956,7 +8956,7 @@ public void TestV2CoreVaultUsBankAccountPost() HttpMethod.Post, "/v2/core/vault/us_bank_accounts", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var options = new Stripe.V2.Core.Vault.UsBankAccountCreateOptions { AccountNumber = "account_number", @@ -8978,7 +8978,7 @@ public void TestV2CoreVaultUsBankAccountGet2() HttpMethod.Get, "/v2/core/vault/us_bank_accounts/id_123", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service.Get( @@ -8995,7 +8995,7 @@ public void TestV2CoreVaultUsBankAccountPost2() HttpMethod.Post, "/v2/core/vault/us_bank_accounts/id_123", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var options = new Stripe.V2.Core.Vault.UsBankAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; @@ -9014,7 +9014,7 @@ public void TestV2CoreVaultUsBankAccountPost3() HttpMethod.Post, "/v2/core/vault/us_bank_accounts/id_123/archive", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service.Archive( @@ -9031,7 +9031,7 @@ public void TestV2CoreVaultUsBankAccountPost4() HttpMethod.Post, "/v2/core/vault/us_bank_accounts/id_123/confirm_microdeposits", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service @@ -9048,7 +9048,7 @@ public void TestV2CoreVaultUsBankAccountPost5() HttpMethod.Post, "/v2/core/vault/us_bank_accounts/id_123/send_microdeposits", (HttpStatusCode)200, - "{\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"object\":\"v2.core.vault.us_bank_account\",\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"},\"livemode\":true}"); + "{\"object\":\"v2.core.vault.us_bank_account\",\"archived\":true,\"bank_account_type\":\"savings\",\"bank_name\":\"bank_name\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"last4\":\"last4\",\"livemode\":true,\"supported_currencies\":[\"supported_currencies\"],\"verification\":{\"status\":\"verification_failed\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Core.Vault.UsBankAccounts; Stripe.V2.Core.Vault.UsBankAccount usBankAccount = service @@ -9058,6 +9058,117 @@ public void TestV2CoreVaultUsBankAccountPost5() "/v2/core/vault/us_bank_accounts/id_123/send_microdeposits"); } + [Fact] + public void TestV2CoreWorkflowGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/workflows", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}],\"next_page_url\":null,\"previous_page_url\":null}", + "status[0]=draft"); + var options = new Stripe.V2.Core.WorkflowListOptions + { + Status = new List { "draft" }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Workflows; + Stripe.V2.StripeList workflows = service + .List(options); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/workflows", + "status[0]=draft"); + } + + [Fact] + public void TestV2CoreWorkflowGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/workflows/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.core.workflow\",\"created\":\"1970-01-12T21:42:34.472Z\",\"description\":\"description\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"draft\",\"triggers\":[{\"type\":\"event_trigger\"}]}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Workflows; + Stripe.V2.Core.Workflow workflow = service.Get("id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/core/workflows/id_123"); + } + + [Fact] + public void TestV2CoreWorkflowPost() + { + this.StubRequest( + HttpMethod.Post, + "/v2/core/workflows/id_123/invoke", + (HttpStatusCode)200, + "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + var options = new Stripe.V2.Core.WorkflowInvokeOptions + { + InputParameters = new Dictionary + { + { "int_key", 123 }, + { "string_key", "value" }, + { "boolean_key", true }, + { + "object_key", new Dictionary + { + { "object_int_key", 123 }, + { "object_string_key", "value" }, + { "object_boolean_key", true }, + } + }, + { "array_key", new List { 1, 2, 3 } }, + }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.Workflows; + Stripe.V2.Core.WorkflowRun workflowRun = service.Invoke( + "id_123", + options); + this.AssertRequest( + HttpMethod.Post, + "/v2/core/workflows/id_123/invoke"); + } + + [Fact] + public void TestV2CoreWorkflowRunGet() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/workflow_runs", + (HttpStatusCode)200, + "{\"data\":[{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}],\"next_page_url\":null,\"previous_page_url\":null}", + "status[0]=failed&workflow[0]=workflow"); + var options = new Stripe.V2.Core.WorkflowRunListOptions + { + Status = new List { "failed" }, + Workflow = new List { "workflow" }, + }; + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.WorkflowRuns; + Stripe.V2.StripeList workflowRuns = service + .List(options); + this.AssertRequest( + HttpMethod.Get, + "/v2/core/workflow_runs", + "status[0]=failed&workflow[0]=workflow"); + } + + [Fact] + public void TestV2CoreWorkflowRunGet2() + { + this.StubRequest( + HttpMethod.Get, + "/v2/core/workflow_runs/id_123", + (HttpStatusCode)200, + "{\"object\":\"v2.core.workflow_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\",\"status_transitions\":{},\"trigger\":{\"type\":\"event_trigger\"},\"workflow\":\"workflow\"}"); + var client = new StripeClient(this.Requestor); + var service = client.V2.Core.WorkflowRuns; + Stripe.V2.Core.WorkflowRun workflowRun = service.Get("id_123"); + this.AssertRequest(HttpMethod.Get, "/v2/core/workflow_runs/id_123"); + } + [Fact] public void TestV2DataReportingQueryRunPost() { @@ -9065,7 +9176,7 @@ public void TestV2DataReportingQueryRunPost() HttpMethod.Post, "/v2/data/reporting/query_runs", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.data.reporting.query_run\",\"status_details\":{\"key\":{}},\"sql\":\"sql\",\"status\":\"failed\",\"livemode\":true}"); + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); var options = new Stripe.V2.Data.Reporting.QueryRunCreateOptions { Sql = "sql", @@ -9086,7 +9197,7 @@ public void TestV2DataReportingQueryRunGet() HttpMethod.Get, "/v2/data/reporting/query_runs/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.data.reporting.query_run\",\"status_details\":{\"key\":{}},\"sql\":\"sql\",\"status\":\"failed\",\"livemode\":true}"); + "{\"object\":\"v2.data.reporting.query_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"sql\":\"sql\",\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Data.Reporting.QueryRuns; Stripe.V2.Data.Reporting.QueryRun queryRun = service.Get("id_123"); @@ -9102,7 +9213,7 @@ public void TestV2IamApiKeyGet() HttpMethod.Get, "/v2/iam/api_keys", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Iam.ApiKeys; Stripe.V2.StripeList apiKeys = service.List(); @@ -9116,7 +9227,7 @@ public void TestV2IamApiKeyPost() HttpMethod.Post, "/v2/iam/api_keys", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}"); + "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}"); var options = new Stripe.V2.Iam.ApiKeyCreateOptions { Type = "publishable_key", @@ -9134,7 +9245,7 @@ public void TestV2IamApiKeyGet2() HttpMethod.Get, "/v2/iam/api_keys/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}"); + "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Iam.ApiKeys; Stripe.V2.Iam.ApiKey apiKey = service.Get("id_123"); @@ -9148,7 +9259,7 @@ public void TestV2IamApiKeyPost2() HttpMethod.Post, "/v2/iam/api_keys/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}"); + "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}"); var options = new Stripe.V2.Iam.ApiKeyUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Iam.ApiKeys; @@ -9163,7 +9274,7 @@ public void TestV2IamApiKeyPost3() HttpMethod.Post, "/v2/iam/api_keys/id_123/expire", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}"); + "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Iam.ApiKeys; Stripe.V2.Iam.ApiKey apiKey = service.Expire("id_123"); @@ -9179,7 +9290,7 @@ public void TestV2IamApiKeyPost4() HttpMethod.Post, "/v2/iam/api_keys/id_123/rotate", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"object\":\"v2.iam.api_key\",\"status\":\"active\",\"type\":\"publishable_key\",\"livemode\":true}"); + "{\"object\":\"v2.iam.api_key\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"ip_allowlist\":[\"ip_allowlist\"],\"livemode\":true,\"status\":\"active\",\"type\":\"publishable_key\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Iam.ApiKeys; Stripe.V2.Iam.ApiKey apiKey = service.Rotate("id_123"); @@ -9195,7 +9306,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\":[{\"object\":\"v2.money_management.adjustment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"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 @@ -9212,7 +9323,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}"); + "{\"object\":\"v2.money_management.adjustment\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Adjustments; Stripe.V2.MoneyManagement.Adjustment adjustment = service.Get( @@ -9229,7 +9340,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\":[{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.StripeList currencyConversions = service @@ -9246,7 +9357,7 @@ 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}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); var options = new Stripe.V2.MoneyManagement.CurrencyConversionCreateOptions { FinancialAccount = "financial_account", @@ -9285,7 +9396,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}}}"); + "{\"object\":\"v2.money_management.currency_conversion\",\"created\":\"1970-01-12T21:42:34.472Z\",\"exchange_rate\":\"exchange_rate\",\"financial_account\":\"financial_account\",\"from\":{\"amount\":{\"currency\":\"USD\",\"value\":96}},\"id\":\"obj_123\",\"livemode\":true,\"to\":{\"amount\":{\"currency\":\"USD\",\"value\":96}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.CurrencyConversions; Stripe.V2.MoneyManagement.CurrencyConversion currencyConversion = service @@ -9302,7 +9413,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\":[{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.StripeList financialAccounts = service @@ -9319,7 +9430,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}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountCreateOptions { Type = "storage", @@ -9340,7 +9451,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}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9357,7 +9468,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}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); var options = new Stripe.V2.MoneyManagement.FinancialAccountUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; @@ -9375,7 +9486,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}"); + "{\"object\":\"v2.money_management.financial_account\",\"balance\":{\"available\":{\"key\":{\"currency\":\"USD\",\"value\":35}},\"inbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":11}},\"outbound_pending\":{\"key\":{\"currency\":\"USD\",\"value\":60}}},\"country\":\"country\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"closed\",\"type\":\"payments\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAccounts; Stripe.V2.MoneyManagement.FinancialAccount financialAccount = service @@ -9392,7 +9503,7 @@ public void TestV2MoneyManagementFinancialAddressGet() HttpMethod.Get, "/v2/money_management/financial_addresses", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; Stripe.V2.StripeList financialAddresses = service @@ -9409,7 +9520,7 @@ public void TestV2MoneyManagementFinancialAddressPost() HttpMethod.Post, "/v2/money_management/financial_addresses", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}"); var options = new Stripe.V2.MoneyManagement.FinancialAddressCreateOptions { FinancialAccount = "financial_account", @@ -9431,7 +9542,7 @@ public void TestV2MoneyManagementFinancialAddressGet2() HttpMethod.Get, "/v2/money_management/financial_addresses/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"object\":\"v2.money_management.financial_address\",\"status\":\"failed\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.financial_address\",\"created\":\"1970-01-12T21:42:34.472Z\",\"currency\":\"usd\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"failed\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.FinancialAddresses; Stripe.V2.MoneyManagement.FinancialAddress financialAddress = service @@ -9448,7 +9559,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\":[{\"object\":\"v2.money_management.inbound_transfer\",\"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\",\"livemode\":true,\"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\"}]}],\"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 @@ -9465,7 +9576,7 @@ 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}"); + "{\"object\":\"v2.money_management.inbound_transfer\",\"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\",\"livemode\":true,\"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\"}]}"); var options = new Stripe.V2.MoneyManagement.InboundTransferCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -9496,7 +9607,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}"); + "{\"object\":\"v2.money_management.inbound_transfer\",\"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\",\"livemode\":true,\"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\"}]}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.InboundTransfers; Stripe.V2.MoneyManagement.InboundTransfer inboundTransfer = service @@ -9513,7 +9624,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\":[{\"object\":\"v2.money_management.outbound_payment\",\"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\",\"livemode\":true,\"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\"}}],\"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 @@ -9530,7 +9641,7 @@ 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}"); + "{\"object\":\"v2.money_management.outbound_payment\",\"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\",\"livemode\":true,\"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\"}}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -9562,7 +9673,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}"); + "{\"object\":\"v2.money_management.outbound_payment\",\"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\",\"livemode\":true,\"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\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9579,7 +9690,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}"); + "{\"object\":\"v2.money_management.outbound_payment\",\"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\",\"livemode\":true,\"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\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPayments; Stripe.V2.MoneyManagement.OutboundPayment outboundPayment = service @@ -9596,7 +9707,7 @@ 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\":\"next_day_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}"); + "{\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_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\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); var options = new Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -9628,7 +9739,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\":\"next_day_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}"); + "{\"object\":\"v2.money_management.outbound_payment_quote\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"estimated_fees\":[{\"amount\":{\"currency\":\"USD\",\"value\":96},\"type\":\"next_day_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\",\"livemode\":true,\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\",\"recipient\":\"recipient\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundPaymentQuotes; Stripe.V2.MoneyManagement.OutboundPaymentQuote outboundPaymentQuote = service @@ -9645,7 +9756,7 @@ public void TestV2MoneyManagementOutboundSetupIntentGet() HttpMethod.Get, "/v2/money_management/outbound_setup_intents", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; Stripe.V2.StripeList outboundSetupIntents = service @@ -9662,7 +9773,7 @@ public void TestV2MoneyManagementOutboundSetupIntentPost() HttpMethod.Post, "/v2/money_management/outbound_setup_intents", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentCreateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; @@ -9680,7 +9791,7 @@ public void TestV2MoneyManagementOutboundSetupIntentGet2() HttpMethod.Get, "/v2/money_management/outbound_setup_intents/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service @@ -9697,7 +9808,7 @@ public void TestV2MoneyManagementOutboundSetupIntentPost2() HttpMethod.Post, "/v2/money_management/outbound_setup_intents/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); var options = new Stripe.V2.MoneyManagement.OutboundSetupIntentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; @@ -9715,7 +9826,7 @@ public void TestV2MoneyManagementOutboundSetupIntentPost3() HttpMethod.Post, "/v2/money_management/outbound_setup_intents/id_123/cancel", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.outbound_setup_intent\",\"payout_method\":{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.outbound_setup_intent\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"payout_method\":{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}},\"status\":\"requires_payout_method\",\"usage_intent\":\"payment\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundSetupIntents; Stripe.V2.MoneyManagement.OutboundSetupIntent outboundSetupIntent = service @@ -9732,7 +9843,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\":[{\"object\":\"v2.money_management.outbound_transfer\",\"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\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}],\"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 @@ -9749,7 +9860,7 @@ 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}"); + "{\"object\":\"v2.money_management.outbound_transfer\",\"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\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}"); var options = new Stripe.V2.MoneyManagement.OutboundTransferCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -9780,7 +9891,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}"); + "{\"object\":\"v2.money_management.outbound_transfer\",\"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\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9797,7 +9908,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}"); + "{\"object\":\"v2.money_management.outbound_transfer\",\"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\",\"livemode\":true,\"statement_descriptor\":\"statement_descriptor\",\"status\":\"canceled\",\"to\":{\"credited\":{\"currency\":\"USD\",\"value\":68},\"payout_method\":\"payout_method\"},\"trace_id\":{\"status\":\"pending\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.OutboundTransfers; Stripe.V2.MoneyManagement.OutboundTransfer outboundTransfer = service @@ -9814,7 +9925,7 @@ public void TestV2MoneyManagementPayoutMethodGet() HttpMethod.Get, "/v2/money_management/payout_methods", (HttpStatusCode)200, - "{\"data\":[{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.PayoutMethods; Stripe.V2.StripeList payoutMethods = service @@ -9831,7 +9942,7 @@ public void TestV2MoneyManagementPayoutMethodGet2() HttpMethod.Get, "/v2/money_management/payout_methods/id_123", (HttpStatusCode)200, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); + "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.PayoutMethods; Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service.Get( @@ -9848,7 +9959,7 @@ public void TestV2MoneyManagementPayoutMethodPost() HttpMethod.Post, "/v2/money_management/payout_methods/id_123/archive", (HttpStatusCode)200, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); + "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.PayoutMethods; Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service @@ -9865,7 +9976,7 @@ public void TestV2MoneyManagementPayoutMethodPost2() HttpMethod.Post, "/v2/money_management/payout_methods/id_123/unarchive", (HttpStatusCode)200, - "{\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.money_management.payout_method\",\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"},\"livemode\":true}"); + "{\"object\":\"v2.money_management.payout_method\",\"available_payout_speeds\":[\"standard\"],\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"restricted\":true,\"type\":\"bank_account\",\"usage_status\":{\"payments\":\"requires_action\",\"transfers\":\"invalid\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.PayoutMethods; Stripe.V2.MoneyManagement.PayoutMethod payoutMethod = service @@ -9882,7 +9993,7 @@ public void TestV2MoneyManagementPayoutMethodsBankAccountSpecGet() HttpMethod.Get, "/v2/money_management/payout_methods_bank_account_spec", (HttpStatusCode)200, - "{\"countries\":{\"key\":{\"fields\":[{\"local_name\":\"local_name\",\"local_name_human\":{\"content\":\"content\",\"localization_key\":\"localization_key\"},\"max_length\":1111390753,\"min_length\":711577229,\"placeholder\":\"placeholder\",\"stripe_name\":\"stripe_name\",\"validation_regex\":\"validation_regex\"}]}},\"object\":\"v2.money_management.payout_methods_bank_account_spec\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.payout_methods_bank_account_spec\",\"countries\":{\"key\":{\"fields\":[{\"local_name\":\"local_name\",\"local_name_human\":{\"content\":\"content\",\"localization_key\":\"localization_key\"},\"max_length\":1111390753,\"min_length\":711577229,\"placeholder\":\"placeholder\",\"stripe_name\":\"stripe_name\",\"validation_regex\":\"validation_regex\"}]}},\"livemode\":true}"); var client = new StripeClient(this.Requestor); var service = client .V2 @@ -9902,7 +10013,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\":[{\"object\":\"v2.money_management.received_credit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"returned\",\"type\":\"balance_transfer\"}],\"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 @@ -9919,7 +10030,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}"); + "{\"object\":\"v2.money_management.received_credit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"returned\",\"type\":\"balance_transfer\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedCredits; Stripe.V2.MoneyManagement.ReceivedCredit receivedCredit = service @@ -9936,7 +10047,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\":[{\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"canceled\",\"type\":\"balance_transfer\"}],\"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 @@ -9953,7 +10064,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}"); + "{\"object\":\"v2.money_management.received_debit\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"canceled\",\"type\":\"balance_transfer\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.ReceivedDebits; Stripe.V2.MoneyManagement.ReceivedDebit receivedDebit = service.Get( @@ -9970,7 +10081,7 @@ public void TestV2MoneyManagementRecipientVerificationPost() HttpMethod.Post, "/v2/money_management/recipient_verifications", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}"); var options = new Stripe.V2.MoneyManagement.RecipientVerificationCreateOptions { PayoutMethod = "payout_method", @@ -9991,7 +10102,7 @@ public void TestV2MoneyManagementRecipientVerificationGet() HttpMethod.Get, "/v2/money_management/recipient_verifications/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.RecipientVerifications; Stripe.V2.MoneyManagement.RecipientVerification recipientVerification = service @@ -10008,7 +10119,7 @@ public void TestV2MoneyManagementRecipientVerificationPost2() HttpMethod.Post, "/v2/money_management/recipient_verifications/id_123/acknowledge", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.RecipientVerifications; Stripe.V2.MoneyManagement.RecipientVerification recipientVerification = service @@ -10025,7 +10136,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\":[{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.StripeList transactions = service @@ -10042,7 +10153,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}"); + "{\"object\":\"v2.money_management.transaction\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"category\":\"received_debit_reversal\",\"created\":\"1970-01-12T21:42:34.472Z\",\"financial_account\":\"financial_account\",\"id\":\"obj_123\",\"livemode\":true,\"status\":\"pending\",\"status_transitions\":{}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.Transactions; Stripe.V2.MoneyManagement.Transaction transaction = service.Get( @@ -10059,7 +10170,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\":[{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.StripeList transactionEntries = service @@ -10076,7 +10187,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}"); + "{\"object\":\"v2.money_management.transaction_entry\",\"balance_impact\":{\"available\":{\"currency\":\"USD\",\"value\":35},\"inbound_pending\":{\"currency\":\"USD\",\"value\":11},\"outbound_pending\":{\"currency\":\"USD\",\"value\":60}},\"created\":\"1970-01-12T21:42:34.472Z\",\"effective_at\":\"1970-01-03T20:38:28.043Z\",\"id\":\"obj_123\",\"livemode\":true,\"transaction\":\"transaction\",\"transaction_details\":{\"category\":\"received_debit_reversal\",\"financial_account\":\"financial_account\"}}"); var client = new StripeClient(this.Requestor); var service = client.V2.MoneyManagement.TransactionEntries; Stripe.V2.MoneyManagement.TransactionEntry transactionEntry = service @@ -10093,7 +10204,7 @@ public void TestV2PaymentsOffSessionPaymentGet() HttpMethod.Get, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"data\":[{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}],\"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 @@ -10110,7 +10221,7 @@ public void TestV2PaymentsOffSessionPaymentPost() HttpMethod.Post, "/v2/payments/off_session_payments", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -10137,7 +10248,7 @@ public void TestV2PaymentsOffSessionPaymentGet2() HttpMethod.Get, "/v2/payments/off_session_payments/id_123", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -10154,7 +10265,7 @@ public void TestV2PaymentsOffSessionPaymentPost2() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/cancel", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -10171,7 +10282,7 @@ public void TestV2PaymentsOffSessionPaymentPost3() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/capture", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var options = new Stripe.V2.Payments.OffSessionPaymentCaptureOptions { Metadata = new Dictionary @@ -10195,7 +10306,7 @@ public void TestV2PaymentsOffSessionPaymentPost4() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/pause", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -10212,7 +10323,7 @@ public void TestV2PaymentsOffSessionPaymentPost5() HttpMethod.Post, "/v2/payments/off_session_payments/id_123/resume", (HttpStatusCode)200, - "{\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"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\":\"requires_capture\"}"); + "{\"object\":\"v2.payments.off_session_payment\",\"amount_requested\":{\"currency\":\"USD\",\"value\":47},\"cadence\":\"unscheduled\",\"created\":\"1970-01-12T21:42:34.472Z\",\"customer\":\"customer\",\"id\":\"obj_123\",\"livemode\":true,\"metadata\":{\"key\":\"metadata\"},\"payment_method\":\"payment_method\",\"payments_orchestration\":{\"enabled\":true},\"retry_details\":{\"attempts\":542738246,\"retry_strategy\":\"scheduled\"},\"status\":\"requires_capture\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.OffSessionPayments; Stripe.V2.Payments.OffSessionPayment offSessionPayment = service @@ -10229,7 +10340,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\":[{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}],\"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 @@ -10246,7 +10357,7 @@ 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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentCreateOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -10272,7 +10383,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10289,7 +10400,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}"); var options = new Stripe.V2.Payments.SettlementAllocationIntentUpdateOptions(); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; @@ -10307,7 +10418,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10324,7 +10435,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent\",\"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\"],\"livemode\":true,\"reference\":\"reference\",\"status\":\"canceled\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents; Stripe.V2.Payments.SettlementAllocationIntent settlementAllocationIntent = service @@ -10341,7 +10452,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\":[{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}],\"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 @@ -10358,7 +10469,7 @@ 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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}"); var options = new Stripe.V2.Payments.SettlementAllocationIntents.SplitCreateOptions { Account = "account", @@ -10381,7 +10492,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10398,7 +10509,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}"); + "{\"object\":\"v2.payments.settlement_allocation_intent_split\",\"account\":\"account\",\"amount\":{\"currency\":\"USD\",\"value\":96},\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"settlement_allocation_intent\":\"settlement_allocation_intent\",\"status\":\"canceled\",\"type\":\"credit\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Payments.SettlementAllocationIntents.Splits; Stripe.V2.Payments.SettlementAllocationIntentSplit settlementAllocationIntentSplit = service @@ -10415,7 +10526,7 @@ public void TestV2ReportingReportGet() HttpMethod.Get, "/v2/reporting/reports/id_123", (HttpStatusCode)200, - "{\"id\":\"obj_123\",\"name\":\"name\",\"object\":\"v2.reporting.report\",\"parameters\":{\"key\":{\"description\":\"description\",\"required\":true,\"type\":\"string\"}},\"livemode\":true}"); + "{\"object\":\"v2.reporting.report\",\"id\":\"obj_123\",\"livemode\":true,\"name\":\"name\",\"parameters\":{\"key\":{\"description\":\"description\",\"required\":true,\"type\":\"string\"}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Reporting.Reports; Stripe.V2.Reporting.Report report = service.Get("id_123"); @@ -10429,7 +10540,7 @@ public void TestV2ReportingReportRunPost() HttpMethod.Post, "/v2/reporting/report_runs", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}},\"livemode\":true}"); + "{\"object\":\"v2.reporting.report_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); var options = new Stripe.V2.Reporting.ReportRunCreateOptions { Report = "report", @@ -10462,7 +10573,7 @@ public void TestV2ReportingReportRunGet() HttpMethod.Get, "/v2/reporting/report_runs/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.reporting.report_run\",\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}},\"livemode\":true}"); + "{\"object\":\"v2.reporting.report_run\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"report\":\"report\",\"report_name\":\"report_name\",\"report_parameters\":{\"int_key\":123,\"string_key\":\"value\",\"boolean_key\":true,\"object_key\":{\"object_int_key\":123,\"object_string_key\":\"value\",\"object_boolean_key\":true},\"array_key\":[1,2,3]},\"status\":\"failed\",\"status_details\":{\"key\":{}}}"); var client = new StripeClient(this.Requestor); var service = client.V2.Reporting.ReportRuns; Stripe.V2.Reporting.ReportRun reportRun = service.Get("id_123"); @@ -10478,7 +10589,7 @@ public void TestV2TaxManualRuleGet() HttpMethod.Get, "/v2/tax/manual_rules", (HttpStatusCode)200, - "{\"data\":[{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}],\"next_page_url\":null,\"previous_page_url\":null}"); + "{\"data\":[{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}],\"next_page_url\":null,\"previous_page_url\":null}"); var client = new StripeClient(this.Requestor); var service = client.V2.Tax.ManualRules; Stripe.V2.StripeList manualRules = service @@ -10493,7 +10604,7 @@ public void TestV2TaxManualRulePost() HttpMethod.Post, "/v2/tax/manual_rules", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}"); var options = new Stripe.V2.Tax.ManualRuleCreateOptions { ScheduledTaxRates = new List @@ -10531,7 +10642,7 @@ public void TestV2TaxManualRuleGet2() HttpMethod.Get, "/v2/tax/manual_rules/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Tax.ManualRules; Stripe.V2.Tax.ManualRule manualRule = service.Get("id_123"); @@ -10545,7 +10656,7 @@ public void TestV2TaxManualRulePost2() HttpMethod.Post, "/v2/tax/manual_rules/id_123", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}"); var options = new Stripe.V2.Tax.ManualRuleUpdateOptions { ScheduledTaxRates = new List @@ -10585,7 +10696,7 @@ public void TestV2TaxManualRulePost3() HttpMethod.Post, "/v2/tax/manual_rules/id_123/deactivate", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"object\":\"v2.tax.manual_rule\",\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\",\"livemode\":true}"); + "{\"object\":\"v2.tax.manual_rule\",\"created\":\"1970-01-12T21:42:34.472Z\",\"id\":\"obj_123\",\"livemode\":true,\"products\":[{\"type\":\"licensed_item\"}],\"scheduled_tax_rates\":[{\"rates\":[{\"display_name\":\"display_name\",\"percentage\":\"614555204\"}]}],\"status\":\"active\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.Tax.ManualRules; Stripe.V2.Tax.ManualRule manualRule = service.Deactivate("id_123"); @@ -10601,7 +10712,7 @@ public void TestV2TestHelpersFinancialAddressPost() HttpMethod.Post, "/v2/test_helpers/financial_addresses/id_123/credit", (HttpStatusCode)200, - "{\"object\":\"financial_address_credit_simulation\",\"status\":\"status\",\"livemode\":true}"); + "{\"object\":\"financial_address_credit_simulation\",\"livemode\":true,\"status\":\"status\"}"); var options = new Stripe.V2.TestHelpers.FinancialAddressCreditOptions { Amount = new Stripe.V2.Amount { Value = 96, Currency = "USD" }, @@ -10623,7 +10734,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}"); + "{\"object\":\"financial_address_generated_microdeposits\",\"amounts\":[{\"currency\":\"USD\",\"value\":1}],\"livemode\":true,\"status\":\"accepted\"}"); var client = new StripeClient(this.Requestor); var service = client.V2.TestHelpers.FinancialAddresses; Stripe.V2.FinancialAddressGeneratedMicrodeposits financialAddressGeneratedMicrodeposits = service @@ -10640,7 +10751,7 @@ public void TestV2TestHelpersMoneyManagementPost() HttpMethod.Post, "/v2/test_helpers/money_management/recipient_verifications", (HttpStatusCode)200, - "{\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"object\":\"v2.money_management.recipient_verification\",\"status\":\"acknowledged\",\"livemode\":true}"); + "{\"object\":\"v2.money_management.recipient_verification\",\"created\":\"1970-01-12T21:42:34.472Z\",\"expires_at\":\"1970-01-10T15:36:51.170Z\",\"id\":\"obj_123\",\"livemode\":true,\"match_result\":\"unavailable\",\"match_result_details\":{\"message\":\"message\",\"provided_name\":\"provided_name\"},\"status\":\"acknowledged\"}"); var options = new Stripe.V2.TestHelpers.MoneyManagementRecipientVerificationsOptions { MatchResult = "unavailable",