Skip to content

Commit 4a3905f

Browse files
authored
Merge pull request #1434 from stripe/ob-make-deleted-nullable
Make Deleted nullable on all Stripe objects
2 parents 6bdca72 + 082ebb8 commit 4a3905f

File tree

14 files changed

+14
-14
lines changed

14 files changed

+14
-14
lines changed

src/Stripe.net/Entities/Accounts/Account.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ internal object InternalBusinessLogo
6969
/// Whether this object is deleted or not.
7070
/// </summary>
7171
[JsonProperty("deleted")]
72-
public bool Deleted { get; set; }
72+
public bool? Deleted { get; set; }
7373

7474
[JsonProperty("details_submitted")]
7575
public bool DetailsSubmitted { get; set; }

src/Stripe.net/Entities/ApplePayDomains/ApplePayDomain.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class ApplePayDomain : StripeEntity, IHasId, IHasObject
2020
/// Whether this object is deleted or not.
2121
/// </summary>
2222
[JsonProperty("deleted")]
23-
public bool Deleted { get; set; }
23+
public bool? Deleted { get; set; }
2424

2525
[JsonProperty("domain_name")]
2626
public string DomainName { get; set; }

src/Stripe.net/Entities/BankAccounts/BankAccount.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ internal object InternalCustomer
6767
/// Whether this object is deleted or not.
6868
/// </summary>
6969
[JsonProperty("deleted")]
70-
public bool Deleted { get; set; }
70+
public bool? Deleted { get; set; }
7171

7272
[JsonProperty("fingerprint")]
7373
public string Fingerprint { get; set; }

src/Stripe.net/Entities/Cards/Card.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ internal object InternalCustomer
9090
/// Whether this object is deleted or not.
9191
/// </summary>
9292
[JsonProperty("deleted")]
93-
public bool Deleted { get; set; }
93+
public bool? Deleted { get; set; }
9494

9595
[JsonProperty("dynamic_last4")]
9696
public string DynamicLast4 { get; set; }

src/Stripe.net/Entities/Coupons/Coupon.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class Coupon : StripeEntity, IHasId, IHasMetadata, IHasObject
2727
/// Whether this object is deleted or not.
2828
/// </summary>
2929
[JsonProperty("deleted")]
30-
public bool Deleted { get; set; }
30+
public bool? Deleted { get; set; }
3131

3232
[JsonProperty("duration")]
3333
public string Duration { get; set; }

src/Stripe.net/Entities/Discounts/Discount.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ internal object InternalCustomer
3232
/// Whether this object is deleted or not.
3333
/// </summary>
3434
[JsonProperty("deleted")]
35-
public bool Deleted { get; set; }
35+
public bool? Deleted { get; set; }
3636

3737
[JsonProperty("end")]
3838
[JsonConverter(typeof(DateTimeConverter))]

src/Stripe.net/Entities/EphemeralKeys/EphemeralKey.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public string RawJson
3333
/// Whether this object is deleted or not.
3434
/// </summary>
3535
[JsonProperty("deleted")]
36-
public bool Deleted { get; set; }
36+
public bool? Deleted { get; set; }
3737

3838
[JsonProperty("expires")]
3939
[JsonConverter(typeof(DateTimeConverter))]

src/Stripe.net/Entities/InvoiceItems/InvoiceItem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal object InternalCustomer
4343
/// Whether this object is deleted or not.
4444
/// </summary>
4545
[JsonProperty("deleted")]
46-
public bool Deleted { get; set; }
46+
public bool? Deleted { get; set; }
4747

4848
[JsonProperty("description")]
4949
public string Description { get; set; }

src/Stripe.net/Entities/Persons/Person.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Person : StripeEntity, IHasId, IHasObject
3030
public DateTime Created { get; set; }
3131

3232
[JsonProperty("deleted")]
33-
public bool Deleted { get; set; }
33+
public bool? Deleted { get; set; }
3434

3535
[JsonProperty("dob")]
3636
public BirthDay Dob { get; set; }

src/Stripe.net/Entities/Plans/Plan.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class Plan : StripeEntity, IHasId, IHasMetadata, IHasObject
3636
/// Whether this object is deleted or not.
3737
/// </summary>
3838
[JsonProperty("deleted")]
39-
public bool Deleted { get; set; }
39+
public bool? Deleted { get; set; }
4040

4141
[JsonProperty("interval")]
4242
public string Interval { get; set; }

src/Stripe.net/Entities/Products/Product.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class Product : StripeEntity, IHasId, IHasMetadata, IHasObject
4848
/// Whether this object is deleted or not.
4949
/// </summary>
5050
[JsonProperty("deleted")]
51-
public bool Deleted { get; set; }
51+
public bool? Deleted { get; set; }
5252

5353
/// <summary>
5454
/// The product’s description, meant to be displayable to the customer.

src/Stripe.net/Entities/Skus/Sku.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class Sku : StripeEntity, IHasId, IHasMetadata, IHasObject
4242
/// Whether this object is deleted or not.
4343
/// </summary>
4444
[JsonProperty("deleted")]
45-
public bool Deleted { get; set; }
45+
public bool? Deleted { get; set; }
4646

4747
/// <summary>
4848
/// The URL of an image for this SKU, meant to be displayable to the customer.

src/Stripe.net/Entities/SubscriptionItems/SubscriptionItem.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class SubscriptionItem : StripeEntity, IHasId, IHasMetadata, IHasObject
2121
/// Whether this object is deleted or not.
2222
/// </summary>
2323
[JsonProperty("deleted")]
24-
public bool Deleted { get; set; }
24+
public bool? Deleted { get; set; }
2525

2626
[JsonProperty("metadata")]
2727
public Dictionary<string, string> Metadata { get; set; }

src/Stripe.net/Entities/WebhookEndpoints/WebhookEndpoint.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class WebhookEndpoint : StripeEntity, IHasId, IHasObject
2424
public DateTime Created { get; set; }
2525

2626
[JsonProperty("deleted")]
27-
public bool Deleted { get; set; }
27+
public bool? Deleted { get; set; }
2828

2929
[JsonProperty("enabled_events")]
3030
public string[] EnabledEvents { get; set; }

0 commit comments

Comments
 (0)