@@ -28,7 +28,7 @@ public class BillingContractSubscription : BunqModel
2828 /// <summary>
2929 /// Object type.
3030 /// </summary>
31- private const string OBJECT_TYPE = "BillingContractSubscription" ;
31+ private const string OBJECT_TYPE_GET = "BillingContractSubscription" ;
3232
3333 /// <summary>
3434 /// The id of the billing contract.
@@ -75,15 +75,15 @@ public class BillingContractSubscription : BunqModel
7575
7676 /// <summary>
7777 /// </summary>
78- public static BunqResponse < BillingContractSubscription > Create ( ApiContext apiContext , IDictionary < string , object > requestMap , int userId , IDictionary < string , string > customHeaders = null )
78+ public static BunqResponse < int > Create ( ApiContext apiContext , IDictionary < string , object > requestMap , int userId , IDictionary < string , string > customHeaders = null )
7979 {
8080 if ( customHeaders == null ) customHeaders = new Dictionary < string , string > ( ) ;
8181
8282 var apiClient = new ApiClient ( apiContext ) ;
8383 var requestBytes = Encoding . UTF8 . GetBytes ( BunqJsonConvert . SerializeObject ( requestMap ) ) ;
8484 var responseRaw = apiClient . Post ( string . Format ( ENDPOINT_URL_CREATE , userId ) , requestBytes , customHeaders ) ;
8585
86- return FromJson < BillingContractSubscription > ( responseRaw , OBJECT_TYPE ) ;
86+ return ProcessForId ( responseRaw ) ;
8787 }
8888
8989 /// <summary>
@@ -97,7 +97,7 @@ public static BunqResponse<List<BillingContractSubscription>> List(ApiContext ap
9797 var apiClient = new ApiClient ( apiContext ) ;
9898 var responseRaw = apiClient . Get ( string . Format ( ENDPOINT_URL_LISTING , userId ) , urlParams , customHeaders ) ;
9999
100- return FromJsonList < BillingContractSubscription > ( responseRaw , OBJECT_TYPE ) ;
100+ return FromJsonList < BillingContractSubscription > ( responseRaw , OBJECT_TYPE_GET ) ;
101101 }
102102
103103
0 commit comments