@@ -31,6 +31,13 @@ public class BillingContractSubscription : BunqModel
3131 /// </summary>
3232 private const string OBJECT_TYPE_GET = "BillingContractSubscription" ;
3333
34+ /// <summary>
35+ /// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
36+ /// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
37+ /// </summary>
38+ [ JsonProperty ( PropertyName = "subscription_type" ) ]
39+ public string SubscriptionType { get ; set ; }
40+
3441 /// <summary>
3542 /// The id of the billing contract.
3643 /// </summary>
@@ -68,11 +75,11 @@ public class BillingContractSubscription : BunqModel
6875 public int ? ContractVersion { get ; set ; }
6976
7077 /// <summary>
71- /// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
72- /// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2 .
78+ /// The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not
79+ /// possible .
7380 /// </summary>
74- [ JsonProperty ( PropertyName = "subscription_type " ) ]
75- public string SubscriptionType { get ; set ; }
81+ [ JsonProperty ( PropertyName = "subscription_type_downgrade " ) ]
82+ public string SubscriptionTypeDowngrade { get ; set ; }
7683
7784 /// <summary>
7885 /// The subscription status.
@@ -124,7 +131,6 @@ public static BunqResponse<List<BillingContractSubscription>> List(IDictionary<s
124131 return FromJsonList < BillingContractSubscription > ( responseRaw , OBJECT_TYPE_GET ) ;
125132 }
126133
127-
128134 /// <summary>
129135 /// </summary>
130136 public override bool IsAllFieldNull ( )
@@ -164,6 +170,11 @@ public override bool IsAllFieldNull()
164170 return false ;
165171 }
166172
173+ if ( this . SubscriptionTypeDowngrade != null )
174+ {
175+ return false ;
176+ }
177+
167178 if ( this . Status != null )
168179 {
169180 return false ;
0 commit comments