@@ -17,6 +17,7 @@ public void FieldRoundtrip_Works()
1717 var model = new SubscriptionChangeApplyResponse
1818 {
1919 ID = "id",
20+ ChangeType = "change_type",
2021 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
2122 Status = SubscriptionChangeApplyResponseStatus.Pending,
2223 Subscription = new()
@@ -1566,10 +1567,15 @@ public void FieldRoundtrip_Works()
15661567 },
15671568 },
15681569 AppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1570+ BillingCycleAlignment = "billing_cycle_alignment",
15691571 CancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1572+ ChangeOption = "change_option",
1573+ EffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1574+ PlanID = "plan_id",
15701575 };
15711576
15721577 string expectedID = "id";
1578+ string expectedChangeType = "change_type";
15731579 DateTimeOffset expectedExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
15741580 ApiEnum<string, SubscriptionChangeApplyResponseStatus> expectedStatus =
15751581 SubscriptionChangeApplyResponseStatus.Pending;
@@ -3076,14 +3082,23 @@ public void FieldRoundtrip_Works()
30763082 },
30773083 };
30783084 DateTimeOffset expectedAppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
3085+ string expectedBillingCycleAlignment = "billing_cycle_alignment";
30793086 DateTimeOffset expectedCancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
3087+ string expectedChangeOption = "change_option";
3088+ DateTimeOffset expectedEffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
3089+ string expectedPlanID = "plan_id";
30803090
30813091 Assert.Equal(expectedID, model.ID);
3092+ Assert.Equal(expectedChangeType, model.ChangeType);
30823093 Assert.Equal(expectedExpirationTime, model.ExpirationTime);
30833094 Assert.Equal(expectedStatus, model.Status);
30843095 Assert.Equal(expectedSubscription, model.Subscription);
30853096 Assert.Equal(expectedAppliedAt, model.AppliedAt);
3097+ Assert.Equal(expectedBillingCycleAlignment, model.BillingCycleAlignment);
30863098 Assert.Equal(expectedCancelledAt, model.CancelledAt);
3099+ Assert.Equal(expectedChangeOption, model.ChangeOption);
3100+ Assert.Equal(expectedEffectiveDate, model.EffectiveDate);
3101+ Assert.Equal(expectedPlanID, model.PlanID);
30873102 }
30883103
30893104 [Fact]
@@ -3092,6 +3107,7 @@ public void SerializationRoundtrip_Works()
30923107 var model = new SubscriptionChangeApplyResponse
30933108 {
30943109 ID = "id",
3110+ ChangeType = "change_type",
30953111 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
30963112 Status = SubscriptionChangeApplyResponseStatus.Pending,
30973113 Subscription = new()
@@ -4641,7 +4657,11 @@ public void SerializationRoundtrip_Works()
46414657 },
46424658 },
46434659 AppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
4660+ BillingCycleAlignment = "billing_cycle_alignment",
46444661 CancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
4662+ ChangeOption = "change_option",
4663+ EffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
4664+ PlanID = "plan_id",
46454665 };
46464666
46474667 string json = JsonSerializer.Serialize(model);
@@ -4656,6 +4676,7 @@ public void FieldRoundtripThroughSerialization_Works()
46564676 var model = new SubscriptionChangeApplyResponse
46574677 {
46584678 ID = "id",
4679+ ChangeType = "change_type",
46594680 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
46604681 Status = SubscriptionChangeApplyResponseStatus.Pending,
46614682 Subscription = new()
@@ -6205,14 +6226,19 @@ public void FieldRoundtripThroughSerialization_Works()
62056226 },
62066227 },
62076228 AppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
6229+ BillingCycleAlignment = "billing_cycle_alignment",
62086230 CancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
6231+ ChangeOption = "change_option",
6232+ EffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
6233+ PlanID = "plan_id",
62096234 };
62106235
62116236 string json = JsonSerializer.Serialize(model);
62126237 var deserialized = JsonSerializer.Deserialize<SubscriptionChangeApplyResponse>(json);
62136238 Assert.NotNull(deserialized);
62146239
62156240 string expectedID = "id";
6241+ string expectedChangeType = "change_type";
62166242 DateTimeOffset expectedExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
62176243 ApiEnum<string, SubscriptionChangeApplyResponseStatus> expectedStatus =
62186244 SubscriptionChangeApplyResponseStatus.Pending;
@@ -7719,14 +7745,23 @@ public void FieldRoundtripThroughSerialization_Works()
77197745 },
77207746 };
77217747 DateTimeOffset expectedAppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
7748+ string expectedBillingCycleAlignment = "billing_cycle_alignment";
77227749 DateTimeOffset expectedCancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
7750+ string expectedChangeOption = "change_option";
7751+ DateTimeOffset expectedEffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z");
7752+ string expectedPlanID = "plan_id";
77237753
77247754 Assert.Equal(expectedID, deserialized.ID);
7755+ Assert.Equal(expectedChangeType, deserialized.ChangeType);
77257756 Assert.Equal(expectedExpirationTime, deserialized.ExpirationTime);
77267757 Assert.Equal(expectedStatus, deserialized.Status);
77277758 Assert.Equal(expectedSubscription, deserialized.Subscription);
77287759 Assert.Equal(expectedAppliedAt, deserialized.AppliedAt);
7760+ Assert.Equal(expectedBillingCycleAlignment, deserialized.BillingCycleAlignment);
77297761 Assert.Equal(expectedCancelledAt, deserialized.CancelledAt);
7762+ Assert.Equal(expectedChangeOption, deserialized.ChangeOption);
7763+ Assert.Equal(expectedEffectiveDate, deserialized.EffectiveDate);
7764+ Assert.Equal(expectedPlanID, deserialized.PlanID);
77307765 }
77317766
77327767 [Fact]
@@ -7735,6 +7770,7 @@ public void Validation_Works()
77357770 var model = new SubscriptionChangeApplyResponse
77367771 {
77377772 ID = "id",
7773+ ChangeType = "change_type",
77387774 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
77397775 Status = SubscriptionChangeApplyResponseStatus.Pending,
77407776 Subscription = new()
@@ -9284,7 +9320,11 @@ public void Validation_Works()
92849320 },
92859321 },
92869322 AppliedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
9323+ BillingCycleAlignment = "billing_cycle_alignment",
92879324 CancelledAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
9325+ ChangeOption = "change_option",
9326+ EffectiveDate = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
9327+ PlanID = "plan_id",
92889328 };
92899329
92909330 model.Validate();
@@ -9296,6 +9336,7 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works()
92969336 var model = new SubscriptionChangeApplyResponse
92979337 {
92989338 ID = "id",
9339+ ChangeType = "change_type",
92999340 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
93009341 Status = SubscriptionChangeApplyResponseStatus.Pending,
93019342 Subscription = new()
@@ -10848,8 +10889,16 @@ public void OptionalNullablePropertiesUnsetAreNotSet_Works()
1084810889
1084910890 Assert.Null(model.AppliedAt);
1085010891 Assert.False(model.RawData.ContainsKey("applied_at"));
10892+ Assert.Null(model.BillingCycleAlignment);
10893+ Assert.False(model.RawData.ContainsKey("billing_cycle_alignment"));
1085110894 Assert.Null(model.CancelledAt);
1085210895 Assert.False(model.RawData.ContainsKey("cancelled_at"));
10896+ Assert.Null(model.ChangeOption);
10897+ Assert.False(model.RawData.ContainsKey("change_option"));
10898+ Assert.Null(model.EffectiveDate);
10899+ Assert.False(model.RawData.ContainsKey("effective_date"));
10900+ Assert.Null(model.PlanID);
10901+ Assert.False(model.RawData.ContainsKey("plan_id"));
1085310902 }
1085410903
1085510904 [Fact]
@@ -10858,6 +10907,7 @@ public void OptionalNullablePropertiesUnsetValidation_Works()
1085810907 var model = new SubscriptionChangeApplyResponse
1085910908 {
1086010909 ID = "id",
10910+ ChangeType = "change_type",
1086110911 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1086210912 Status = SubscriptionChangeApplyResponseStatus.Pending,
1086310913 Subscription = new()
@@ -12417,6 +12467,7 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works()
1241712467 var model = new SubscriptionChangeApplyResponse
1241812468 {
1241912469 ID = "id",
12470+ ChangeType = "change_type",
1242012471 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1242112472 Status = SubscriptionChangeApplyResponseStatus.Pending,
1242212473 Subscription = new()
@@ -13967,13 +14018,25 @@ public void OptionalNullablePropertiesSetToNullAreSetToNull_Works()
1396714018 },
1396814019
1396914020 AppliedAt = null,
14021+ BillingCycleAlignment = null,
1397014022 CancelledAt = null,
14023+ ChangeOption = null,
14024+ EffectiveDate = null,
14025+ PlanID = null,
1397114026 };
1397214027
1397314028 Assert.Null(model.AppliedAt);
1397414029 Assert.True(model.RawData.ContainsKey("applied_at"));
14030+ Assert.Null(model.BillingCycleAlignment);
14031+ Assert.True(model.RawData.ContainsKey("billing_cycle_alignment"));
1397514032 Assert.Null(model.CancelledAt);
1397614033 Assert.True(model.RawData.ContainsKey("cancelled_at"));
14034+ Assert.Null(model.ChangeOption);
14035+ Assert.True(model.RawData.ContainsKey("change_option"));
14036+ Assert.Null(model.EffectiveDate);
14037+ Assert.True(model.RawData.ContainsKey("effective_date"));
14038+ Assert.Null(model.PlanID);
14039+ Assert.True(model.RawData.ContainsKey("plan_id"));
1397714040 }
1397814041
1397914042 [Fact]
@@ -13982,6 +14045,7 @@ public void OptionalNullablePropertiesSetToNullValidation_Works()
1398214045 var model = new SubscriptionChangeApplyResponse
1398314046 {
1398414047 ID = "id",
14048+ ChangeType = "change_type",
1398514049 ExpirationTime = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
1398614050 Status = SubscriptionChangeApplyResponseStatus.Pending,
1398714051 Subscription = new()
@@ -15532,7 +15596,11 @@ public void OptionalNullablePropertiesSetToNullValidation_Works()
1553215596 },
1553315597
1553415598 AppliedAt = null,
15599+ BillingCycleAlignment = null,
1553515600 CancelledAt = null,
15601+ ChangeOption = null,
15602+ EffectiveDate = null,
15603+ PlanID = null,
1553615604 };
1553715605
1553815606 model.Validate();
0 commit comments