PublicAPI.CRM.Inpayment.SetInpaymentStatus ELMA API Documentation
Change Inpayment Status
 
 
Syntax

public void SetInpaymentStatus(
	Inpayment inpayment,
	InpaymentStatus inpaymentStatus,
	string changeStatusComment
)

Parameters

inpayment
Type: Inpayment
Inpayment, whose status needs to be changed. Object. Access path: PublicAPI.CRM.Inpayment
inpaymentStatus
Type: InpaymentStatus
New inpayment status. Enumeration. Access path: PublicAPI.Enums.CRM.InpaymentStatus
changeStatusComment
Type: System String
Status Change Comment (optional parameter)
Examples

//load an inpayment by ID 
var inpayment = PublicAPI.CRM.Inpayment.Load(3);
//get the "In Plan" inpayment status 
var inpaymentStatus = PublicAPI.Enums.CRM.InpaymentStatus.InPlan;
//status change comment 
var changeStatusComment = "Comment";

//change the inpayment status
PublicAPI.CRM.Inpayment.SetInpaymentStatus(inpayment, inpaymentStatus, changeStatusComment);
See Also