From 7185fe92bcb5b93693b5eab33c422f653abab170 Mon Sep 17 00:00:00 2001 From: Mattias Michaux Date: Fri, 4 Dec 2015 10:55:41 +0100 Subject: [PATCH] Added api spec. --- api/v3/MembershipPayment.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/v3/MembershipPayment.php b/api/v3/MembershipPayment.php index f2a1404550..a271aaefaa 100644 --- a/api/v3/MembershipPayment.php +++ b/api/v3/MembershipPayment.php @@ -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, + ); } /** -- 2.25.1