Skip to content

Commit b7e8ef1

Browse files
jar-stripeclaude
andcommitted
Regenerate with decimal_string enabled for v2 APIs
V2 API fields with `format: decimal` now generate as `decimal?` instead of `string`, matching v1 behavior. This is driven by a codegen change that removes a v2-specific workaround (sdk-codegen#3369). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Committed-By-Agent: claude
1 parent c762f98 commit b7e8ef1

159 files changed

Lines changed: 2561 additions & 1457 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Stripe.net/Entities/PaymentIntents/PaymentIntentPaymentMethodOptionsUsBankAccount.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,5 @@ public class PaymentIntentPaymentMethodOptionsUsBankAccount : StripeEntity<Payme
7777
[STJS.JsonPropertyName("verification_method")]
7878
#endif
7979
public string VerificationMethod { get; set; }
80-
81-
/// <summary>
82-
/// Preferred transaction settlement speed.
83-
/// One of: <c>fastest</c>, or <c>standard</c>.
84-
/// </summary>
85-
[JsonProperty("preferred_settlement_speed")]
86-
#if NET6_0_OR_GREATER
87-
[STJS.JsonPropertyName("preferred_settlement_speed")]
88-
#endif
89-
public string PreferredSettlementSpeed { get; set; }
9080
}
9181
}

src/Stripe.net/Entities/V2/Core/AccountPersons/AccountPersonRelationship.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class AccountPersonRelationship : StripeEntity<AccountPersonRelationship>
6363
#if NET6_0_OR_GREATER
6464
[STJS.JsonPropertyName("percent_ownership")]
6565
#endif
66-
public string PercentOwnership { get; set; }
66+
public decimal? PercentOwnership { get; set; }
6767

6868
/// <summary>
6969
/// Whether the individual is authorized as the primary representative of the Account. This

src/Stripe.net/Entities/V2/Core/Accounts/AccountConfigurationRecipientDefaultOutboundDestination.cs

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@ public class AccountConfigurationRecipientDefaultOutboundDestination : StripeEnt
2020
/// <summary>
2121
/// Closed Enum. The payout method type of the default outbound destination.
2222
/// One of: <c>ae_bank_account</c>, <c>ag_bank_account</c>, <c>al_bank_account</c>,
23-
/// <c>am_bank_account</c>, <c>at_bank_account</c>, <c>au_bank_account</c>,
24-
/// <c>ba_bank_account</c>, <c>be_bank_account</c>, <c>bg_bank_account</c>,
25-
/// <c>bh_bank_account</c>, <c>bj_bank_account</c>, <c>bn_bank_account</c>,
26-
/// <c>bs_bank_account</c>, <c>bt_bank_account</c>, <c>bw_bank_account</c>, <c>card</c>,
27-
/// <c>ca_bank_account</c>, <c>ch_bank_account</c>, <c>ci_bank_account</c>,
28-
/// <c>crypto_wallet</c>, <c>cr_bank_account</c>, <c>cy_bank_account</c>,
29-
/// <c>cz_bank_account</c>, <c>de_bank_account</c>, <c>dk_bank_account</c>,
30-
/// <c>do_bank_account</c>, <c>dz_bank_account</c>, <c>ec_bank_account</c>,
31-
/// <c>ee_bank_account</c>, <c>es_bank_account</c>, <c>et_bank_account</c>,
23+
/// <c>am_bank_account</c>, <c>ar_bank_account</c>, <c>at_bank_account</c>,
24+
/// <c>au_bank_account</c>, <c>ba_bank_account</c>, <c>be_bank_account</c>,
25+
/// <c>bg_bank_account</c>, <c>bh_bank_account</c>, <c>bj_bank_account</c>,
26+
/// <c>bn_bank_account</c>, <c>bs_bank_account</c>, <c>bt_bank_account</c>,
27+
/// <c>bw_bank_account</c>, <c>card</c>, <c>ca_bank_account</c>, <c>ch_bank_account</c>,
28+
/// <c>ci_bank_account</c>, <c>co_bank_account</c>, <c>crypto_wallet</c>,
29+
/// <c>cr_bank_account</c>, <c>cy_bank_account</c>, <c>cz_bank_account</c>,
30+
/// <c>de_bank_account</c>, <c>dk_bank_account</c>, <c>do_bank_account</c>,
31+
/// <c>dz_bank_account</c>, <c>ec_bank_account</c>, <c>ee_bank_account</c>,
32+
/// <c>eg_bank_account</c>, <c>es_bank_account</c>, <c>et_bank_account</c>,
3233
/// <c>fi_bank_account</c>, <c>fr_bank_account</c>, <c>gb_bank_account</c>,
3334
/// <c>gm_bank_account</c>, <c>gr_bank_account</c>, <c>gt_bank_account</c>,
3435
/// <c>gy_bank_account</c>, <c>hk_bank_account</c>, <c>hr_bank_account</c>,

src/Stripe.net/Entities/V2/Core/Accounts/AccountDefaults.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,15 @@ public class AccountDefaults : StripeEntity<AccountDefaults>
5959
[STJS.JsonPropertyName("responsibilities")]
6060
#endif
6161
public AccountDefaultsResponsibilities Responsibilities { get; set; }
62+
63+
/// <summary>
64+
/// The Account's local timezone. A list of possible time zone values is maintained at the
65+
/// <a href="https://www.iana.org/time-zones">IANA Time Zone Database</a>.
66+
/// </summary>
67+
[JsonProperty("timezone")]
68+
#if NET6_0_OR_GREATER
69+
[STJS.JsonPropertyName("timezone")]
70+
#endif
71+
public string Timezone { get; set; }
6272
}
6373
}

src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class AccountIdentityBusinessDetailsAnnualRevenue : StripeEntity<AccountI
1515
#if NET6_0_OR_GREATER
1616
[STJS.JsonPropertyName("amount")]
1717
#endif
18-
public AccountIdentityBusinessDetailsAnnualRevenueAmount Amount { get; set; }
18+
public V2.Amount Amount { get; set; }
1919

2020
/// <summary>
2121
/// The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for

src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsAnnualRevenueAmount.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public class AccountIdentityBusinessDetailsMonthlyEstimatedRevenue : StripeEntit
1616
#if NET6_0_OR_GREATER
1717
[STJS.JsonPropertyName("amount")]
1818
#endif
19-
public AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount Amount { get; set; }
19+
public V2.Amount Amount { get; set; }
2020
}
2121
}

src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityBusinessDetailsMonthlyEstimatedRevenueAmount.cs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/Stripe.net/Entities/V2/Core/Accounts/AccountIdentityIndividualRelationship.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public class AccountIdentityIndividualRelationship : StripeEntity<AccountIdentit
6363
#if NET6_0_OR_GREATER
6464
[STJS.JsonPropertyName("percent_ownership")]
6565
#endif
66-
public string PercentOwnership { get; set; }
66+
public decimal? PercentOwnership { get; set; }
6767

6868
/// <summary>
6969
/// Whether the individual is authorized as the primary representative of the Account. This
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// File generated from our OpenAPI spec
2+
namespace Stripe.V2.Core
3+
{
4+
using System;
5+
using System.Collections.Generic;
6+
using Newtonsoft.Json;
7+
#if NET6_0_OR_GREATER
8+
using STJS = System.Text.Json.Serialization;
9+
#endif
10+
11+
/// <summary>
12+
/// BatchJob resource.
13+
/// </summary>
14+
public class BatchJob : StripeEntity<BatchJob>, IHasId, IHasMetadata, IHasObject
15+
{
16+
/// <summary>
17+
/// Unique identifier for the BatchJob.
18+
/// </summary>
19+
[JsonProperty("id")]
20+
#if NET6_0_OR_GREATER
21+
[STJS.JsonPropertyName("id")]
22+
#endif
23+
public string Id { get; set; }
24+
25+
/// <summary>
26+
/// String representing the object's type. Objects of the same type share the same value of
27+
/// the object field.
28+
/// </summary>
29+
[JsonProperty("object")]
30+
#if NET6_0_OR_GREATER
31+
[STJS.JsonPropertyName("object")]
32+
#endif
33+
public string Object { get; set; }
34+
35+
/// <summary>
36+
/// Timestamp at which BatchJob was created.
37+
/// </summary>
38+
[JsonProperty("created")]
39+
#if NET6_0_OR_GREATER
40+
[STJS.JsonPropertyName("created")]
41+
#endif
42+
public DateTime Created { get; set; } = Stripe.Infrastructure.DateTimeUtils.UnixEpoch;
43+
44+
/// <summary>
45+
/// Has the value <c>true</c> if the object exists in live mode or the value <c>false</c> if
46+
/// the object exists in test mode.
47+
/// </summary>
48+
[JsonProperty("livemode")]
49+
#if NET6_0_OR_GREATER
50+
[STJS.JsonPropertyName("livemode")]
51+
#endif
52+
public bool Livemode { get; set; }
53+
54+
/// <summary>
55+
/// The maximum rps defined for the <c>BatchJob</c>.
56+
/// </summary>
57+
[JsonProperty("maximum_rps")]
58+
#if NET6_0_OR_GREATER
59+
[STJS.JsonPropertyName("maximum_rps")]
60+
#endif
61+
public long MaximumRps { get; set; }
62+
63+
/// <summary>
64+
/// The metadata of the <c>BatchJob</c> object.
65+
/// </summary>
66+
[JsonProperty("metadata")]
67+
#if NET6_0_OR_GREATER
68+
[STJS.JsonPropertyName("metadata")]
69+
#endif
70+
public Dictionary<string, string> Metadata { get; set; }
71+
72+
/// <summary>
73+
/// If the validation will be run previous to the execution of the <c>BatchJob</c>.
74+
/// </summary>
75+
[JsonProperty("skip_validation")]
76+
#if NET6_0_OR_GREATER
77+
[STJS.JsonPropertyName("skip_validation")]
78+
#endif
79+
public bool SkipValidation { get; set; }
80+
81+
/// <summary>
82+
/// The current status of the <c>BatchJob</c>.
83+
/// One of: <c>batch_failed</c>, <c>canceled</c>, <c>cancelling</c>, <c>complete</c>,
84+
/// <c>in_progress</c>, <c>ready_for_upload</c>, <c>timeout</c>, <c>upload_timeout</c>,
85+
/// <c>validating</c>, or <c>validation_failed</c>.
86+
/// </summary>
87+
[JsonProperty("status")]
88+
#if NET6_0_OR_GREATER
89+
[STJS.JsonPropertyName("status")]
90+
#endif
91+
public string Status { get; set; }
92+
93+
/// <summary>
94+
/// Additional details about the current state of the <c>BatchJob</c>.
95+
/// </summary>
96+
[JsonProperty("status_details")]
97+
#if NET6_0_OR_GREATER
98+
[STJS.JsonPropertyName("status_details")]
99+
#endif
100+
public BatchJobStatusDetails StatusDetails { get; set; }
101+
}
102+
}

0 commit comments

Comments
 (0)