Added api spec.
authorMattias Michaux <mattias.michaux@gmail.com>
Fri, 4 Dec 2015 09:55:41 +0000 (10:55 +0100)
committerMattias Michaux <mattias.michaux@gmail.com>
Fri, 4 Dec 2015 09:55:41 +0000 (10:55 +0100)
api/v3/MembershipPayment.php

index f2a14045504e1b1f97138110708c6f6f6aa5622e..a271aaefaae3a1872916502928e38b2bca5fd81c 100644 (file)
@@ -56,6 +56,11 @@ function civicrm_api3_membership_payment_create($params) {
 function _civicrm_api3_membership_payment_create_spec(&$params) {
   $params['membership_id']['api.required'] = 1;
   $params['contribution_id']['api.required'] = 1;
+  $params['membership_type_id'] = array(
+    'title' => 'Membership type id',
+    'description' => 'The id of the membership type',
+    'type' => CRM_Utils_Type::T_INT,
+  );
 }
 
 /**