You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/DonorPerfect.php
+11-5
Original file line number
Diff line number
Diff line change
@@ -678,6 +678,7 @@ public function dp_savegift($data)
678
678
'split_gift' => ['string', 1], // Set to 'Y' for each of the splits within a split gift but set to 'N' for the Main gift in a split gift or for any gift that is not a split gift.
679
679
'pledge_payment' => ['string', 1], //
680
680
'reference' => ['string', 100], // The associated SafeSave Transaction ID number is normally entered here.
681
+
'transaction_id' => ['numeric'], // The associated SafeSave Transaction ID number is normally entered here. This field supersedes the @reference field which was previously used for this purpose.
681
682
'memory_honor' => ['string', 30], //
682
683
'gfname' => ['string', 50], //
683
684
'glname' => ['string', 75], //
@@ -687,7 +688,7 @@ public function dp_savegift($data)
687
688
'ty_letter_no' => ['string', 30], // Note: If you are not setting a ty_letter_no code value in this field, set the field to null. Do not ever set this field to empty ('').
688
689
'glink' => ['numeric'], // In a split gift (not the Main), set the glink value to the gift_id value of the Main gift in the split Also, if you are creating a soft credit gift (record_type='S'), use the GLINK field to identify the gift_id of the actual gift. Note: If you are not setting a gift_id value in this field, set the field to null. Do not ever set this field to empty ('') or zero.
689
690
'plink' => ['numeric'], // This field should be blank for a nonrecurring gift but if you are creating a gift that is to be associated with a pledge, set the plink value of the gift to the gift_ID value of the associated pledge. Note: If you are not setting a gift_id value in this field, set the field to null. Do not ever set this field to empty ('') or zero.
690
-
'nocalc' => ['string', 1], //
691
+
'nocalc' => ['string', 1], // The standard value for this field is @nocalc='N'. This field must be set to 'N' for gifts to be reflected in the reports dashboard.
691
692
'receipt' => ['string', 1], //
692
693
'old_amount' => ['money'], //
693
694
'user_id' => $this->appName,
@@ -696,6 +697,7 @@ public function dp_savegift($data)
696
697
'gift_aid_eligible_g' => ['string', 1], // This field relates to the UK based Gift Aid Program. See Supplemental Information > Gift Aid Program for more information.
697
698
'currency' => ['string', 3], // If you use the multi-currency feature, enter appropriate code value per your currency field – e.g; 'USD', 'CAD', etc.
698
699
'receipt_delivery_g' => ['string', 1], // This field sets receipt delivery preference for the specified gift. Supply one of the following single letter code values: • N = do not acknowledge • E = email • B = email and letter • L = letter
700
+
'acknowledgepref' => ['string', 3], // Used in Canadian DonorPerfect systems to indicate official receipt acknowledgement preference code: • 1AR – Acknowledge/Receipt • 2AD – Acknowledge / Do Not Receipt • 3DD – Do Not Acknowledge / Do Not Receipt
699
701
]));
700
702
}
701
703
@@ -867,15 +869,15 @@ public function dp_savecode($data)
867
869
'field_name' => ['string', 20], // Enter the name of an existing field type from the DPCODES table
868
870
'code' => ['string', 30], // Enter the new CODE value
869
871
'description' => ['string', 100], // Enter the description value that will appear in drop-down selection values
870
-
'original_code' => ['string', 20], // Enter NULL
872
+
'original_code' => ['string', 20], // Enter NULL unless you are updating an existing code. In that case, set this field to the current (before update) value of the CODE
871
873
'code_date' => ['date'], // Enter NULL
872
874
'mcat_hi' => ['money'], // Enter NULL
873
875
'mcat_lo' => ['money'], // Enter NULL
874
876
'mcat_gl' => ['string', 1], // Enter NULL
875
877
'acct_num' => ['string', 30], // Enter NULL
876
878
'campaign' => ['string', 30], // Enter NULL
877
879
'solicit_code' => ['string', 30], // Enter NULL
878
-
'overwrite' => null,
880
+
'overwrite' => null,// If you are creating a new code, set this field to NULL or 'N'. If you are updating an existing code, set this to 'Y'.
879
881
'inactive' => ['string', 1], // Enter 'N' for an active code or 'Y' for an inactive code. Inactive codes are not offered in the user interface dropdown lists. Set @inactive='N' to indicate that this entry is Active and will appear in the appropriate drop-down field in the user interface.
880
882
'client_id' => null,
881
883
'available_for_sol' => null,
@@ -928,6 +930,8 @@ public function dp_savelink($data)
928
930
* many checkboxes, there will only be an entry present in DPUSERMULTIVALUES for
929
931
* checkboxes that are set (checked).
930
932
*
933
+
* Recommendation: Consider using the mergemultivalues API call instead of this one.
934
+
*
931
935
* @param array $data
932
936
* @return integer donor_id of the affected donor
933
937
*/
@@ -980,6 +984,8 @@ public function mergemultivalues($data)
980
984
*
981
985
* This API call removes ALL checked values from the specified DPO screen tab.
982
986
*
987
+
* Recommendation: Consider using the mergemultivalues API call instead of this one.
988
+
*
983
989
* @param array $data
984
990
* @return integer donor_id of the affected donor
985
991
*/
@@ -1077,7 +1083,7 @@ public function dp_tribAnon_Create($data)
1077
1083
'DPCodeID' => ['numeric'], // This is the numeric code_ID value that is associated with the tribute type. The standard values are M (In Memory Of) and H (In Honor Of) but you will not be specifying the letter value here but rather the numeric value of the code_ID. You can get the required @code_id value with this SQL SELECT query: SELECT CODE, CODE_ID, DESCRIPTION FROM DPCODES WHERE FIELD_NAME = 'MEMORY_HONOR' Run the query and record the CODE_ID values. They will not change for your DonorPerfect system. If you are connecting to multiple DonorPerfect systems, you will need to run this once for each system you are connecting to and store the values.
1078
1084
'ActiveFlg' => ['bool'], // Enter 1 here to make the tribute active or 0 to make it inactive.
1079
1085
'UserCreateDt' => ['date'], // Enter the current date in this format: mm/dd/yyyy and place single quotes around the date. Entry of time values is NOT supported.
1080
-
'Recipients' => ['string'], // Enter either the donor_id of a single recipient OR multiple donor_id values separated by the pipe symbol and wrapped in single quotes. See examples below. The second example shows four donor ID numbers (11101, 22202, 33303, 44404) being assigned as Recipients and then in the Returns section below that, you can see the names of the donors who correspond to those donor ID numbers. Note: It is possible to create a tribute without specifying any @recipients by omitting this parameter.
1086
+
'Recipients' => ['string'], // Enter either the donor_id of a single recipient OR multiple donor_id values separated by the pipe symbol and wrapped in single quotes. See examples below. The second example shows four donor ID numbers (11101, 22202, 33303, 44404) being assigned as Recipients and then in the Returns section below that, you can see the names of the donors who correspond to those donor ID numbers. Note: It is possible to create a tribute without specifying any @recipients by omitting this parameter. Any recipients specified here will be notified of all gifts to the tribute from the time that their recipient donor_id is added. (i.e.; if a new recipient is added later on, it won't notify them of gifts received before they are added)
1081
1087
]));
1082
1088
}
1083
1089
@@ -1232,7 +1238,7 @@ public function dp_PaymentMethod_Insert($data)
1232
1238
'import_id' => ['numeric'], //
1233
1239
'created_by' => ['string', 20], //
1234
1240
'modified_by' => ['string', 20], //
1235
-
'selected_currency' => ['string', 3], //
1241
+
'selected_currency' => ['string', 3], // e.g 'USD', 'CAD', per default currency used by the DonorPerfect client
0 commit comments