Archive

Posts Tagged ‘Admin’

SWS GetMiscRevenueClassData Method

May 17, 2011 Leave a comment

Retrieves a collection of miscellaneous revenue class data for making miscellaneous payments.

Parameters

Name Data Type Is Required
SiteID  Long  Required
Description  The site’s ID number. This can be found using the GetSiteList method.

Returned Parameters

Name Data Type
ClassID Long
Description The system generated ID for the revenue class.
MiscClassID Long
Description The system generated ID for the miscellaneous class of the organization.
Description String
Description The name of the revenue class.
ClassRef Long
Description The indicator of what type of revenue class this is.
TaxGroupID Long
Description If the revenue class is taxed this indicates which tax group is used.

Example

As with every method we need to pass in credentials. We do this with the LookupUser request object.

We’ll assume you’ve got a web reference, let’s name it SWS, in your Visual Studio project.  At this point we need to our objects.  We’ll need the standard service object, a GetMiscRevenueClassData request object and a GetMiscRevenueClassData response object.  We can define and create those like this:

// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetMiscRevenueClassData_Request request = new SWS.GetMiscRevenueClassData_Request();
SWS.GetMiscRevenueClassData_Response response;

Here’s my sample code of the Request object.

// GetMiscRevenueClassData Request
request.SiteID = 123456;

Finally we can call the method and pass across the login object and the request object to get our misc revenue class data. It’s a good idea to do this in a Try Catch block.

// Call the method that will load the response object
try
{
  response = service.GetMiscRevenueClassData(user_request, request);
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}

Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.

For a full list of methods see SWS Methods.

SWS GetInsuranceProviders Method

May 17, 2011 Leave a comment

Retrieves insurance/protection plan providers available to the site.

Parameters

Name DataType Is Required
OrgID Long Required
Description The organization’s ID number.
SiteID Long Required
Description The site’s ID number. This can be found using the GetSiteList method.

Returned Parameters

Name DataType
CANCEL_AFTER Integer
Description The number of days delinquent the rental can be before the policy is automatically cancelled.
COMMENTS String
Description The comments on the insurance/protection plan.
COVERAGE_AMOUNT Integer
Description The dollar amount of coverage that the insurance/protection plan offers.
COVERAGE_PERC Integer
Description The percentage of coverage that the insurance/protection plan covers.
DEFAULT_OPTION String
Description Indicates if the insurance/protection plan group is the default for the organization (“Y”) or not (“N”).
DESC1 String
Description The full description of the insurance/protection plan coverage.
DESC2 String
Description A shortened version of insurance/protection plan coverage description.
DISP_ACTIVE String
Description Indicates if the insurance/protection plan is active at the site (“Y”) or not (“N”).
GROUP_ACTIVE String
Description Indicates if the insurance/protection plan coverage group is active at the site (“Y”) or not (“N”).
GROUP_NAME String
Description The name of the insurance/protection plan’s group as assigned by the organization.
INS_OPTION_ID Long
Description The insurance/protection plan’s ID number.
INS_PROVIDER_ID Long
Description The insurance/protection plan provider’s ID number.
OPTION_ACTIVE String
Description Within each coverage group there are different levels of coverage. This indicates if the specific level of coverage is available at the organization (“Y”) or not (“N”).
ORG_ID Long
Description The organization’s ID number.
PROVIDER_ACTIVE String
Description Indicates if the provider of the insurance/protection plan is active at the organization (“Y”) or not (“N”).
PROVIDER_NAME String
Description The insurance/protection plan provider’s name.
PROVIDER_NOTES String
Description The notes on the insurance/protection plan’s coverage provider.
RATE Decimal
Description The insurance/protection plan’s premium amount for the service.
SITE_ACTIVE String
Description Indicates if the insurance/protection plan is active at the site (“Y”) or not (“N”).
SITE_ID Long
Description The site’s ID number.
SITE_INS_ID Long
Description The insurance/protection plan provider’s site ID number.
SITE_REF_ID String
Description The site specific provider ID number, if it exists.

Example

As with every method we need to pass in credentials. We do this with the LookupUser request object.

We’ll assume you’ve got a web reference, let’s name it SWS, in your Visual Studio project.  At this point we need to our objects.  We’ll need the standard service object, a GetInsuranceProviders request object and a GetInsuranceProviders response object.  We can define and create those like this:

// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetInsuranceProviders_Request request = new SWS.GetInsuranceProviders_Request();
SWS.GetInsuranceProviders_Response response;

Here’s my sample code of the Request object.

// GetInsuranceProviders Request
request.OrgID = 123456;
request.SiteID = 123456;

Finally we can call the method and pass across the login object and the request object to get our insurance/protection plan providers. It’s a good idea to do this in a Try Catch block.

// Call the method that will load the response object
try
{
  response = service.GetInsuranceProviders(user_request,request);
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}

Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.

For a full list of methods see SWS Methods.

SWS GetDelinqSchedule Method

May 16, 2011 Leave a comment

Retrieves a list of the organization’s delinquency schedules and their IDs.

Parameters

Name DataType Is Required
OrgID Long Required
Description The organization’s ID number.

Returned Parameters

Name DataType
Del_Schedule_Desc String
Description The description of the delinquency schedule.
Del_Schedule_ID Long
Description The delinquency schedule’s ID number.
Del_Schedule_Name String
Description The name of the delinquency schedule.

Example

As with every method we need to pass in credentials. We do this with the LookupUser request object.

We’ll assume you’ve got a web reference, let’s name it SWS, in your Visual Studio project.  At this point we need to our objects.  We’ll need the standard service object, a GetDelinqSchedule request object and a GetDelinqSchedule response object. We can define and create those like this:

// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetDelinqSchedule_Request request = new SWS.GetDelinqSchedule_Request();
SWS.GetDelinqSchedule_Response response;

Here’s my sample code of the Request object.

// GetDelinqSchedule Request
request.OrgID = 123456;

Finally we can call the method and pass across the login object and the request object to perform our reservation. It’s a good idea to do this in a Try Catch block.

// Call the method that will load the response object
try
{
  response = service.GetDelinqSchedule(user_request,request);
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}

Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.

For a full list of methods see SWS Methods.

SWS GetEndRentalRules Method

May 16, 2011 Leave a comment

Retrieves site rules pertaining to terminating a rental.

Parameters

Name DataType Is Required
SiteID Long Required
Description The site’s ID number. This can be found using the GetSiteList method.

Returned Parameters

Name DataType
RULE_VALUES RULE_VALUES
Description The object containing all returned information about the end rental rules.

Example

As with every method we need to pass in credentials. We do this with the LookupUser request object.

We’ll assume you’ve got a web reference, let’s name it SWS, in your Visual Studio project.  At this point we need to our objects.  We’ll need the standard service object, a GetEndRentalRules request object and a RULE_VALUES collection object for the response. We can define and create those like this:

// Create a request and response objects
SWS.WSSoapClient service = new SWS.WSSoapClient();
SWS.GetEndRentalRules_Request request = new SWS.GetEndRentalRules_Request();
SWS.RULE_VALUES[] response;

Here’s my sample code of the Request object.

// GetEndRentalRules Request
request.SiteID = 123456;

Finally we can call the method and pass across the login object and the request object to get our end rental rules. It’s a good idea to do this in a Try Catch block.

// Call the method that will load the response object
try
{
  response = service.GetEndRentalRules(user_request,request);
}
catch (Exception ex)
{
  MessageBox.Show(ex.Message);
}

Note that if something goes wrong the service will respond with an exception. You’ll want to take a look at that message returned in that exception so it can be debugged.

For a full list of methods see SWS Methods.