Class GiroCheckoutRequest
- Namespace
- GiroSolution.GiroCheckout.Request
- Assembly
- GiroCheckout.dll
public abstract class GiroCheckoutRequest
- Inheritance
-
GiroCheckoutRequest
- Derived
-
- Inherited Members
-
Constructors
GiroCheckoutRequest(Project)
public GiroCheckoutRequest(Project project)
Parameters
project Project
Fields
HASH
protected const string HASH = "hash"
Field Value
- string
MERCHANT_ID_REQ
protected const string MERCHANT_ID_REQ = "merchantId"
Field Value
- string
PROJECT_ID_REQ
protected const string PROJECT_ID_REQ = "projectId"
Field Value
- string
protected const string RESPONSE_HASH_HEADER = "hash"
Field Value
- string
RESPONSE_MSG
protected const string RESPONSE_MSG = "msg"
Field Value
- string
RESPONSE_RC
protected const string RESPONSE_RC = "rc"
Field Value
- string
SOURCE_ID
protected const string SOURCE_ID = "sourceId"
Field Value
- string
SOURCE_ID_VALUE
protected const string SOURCE_ID_VALUE = ".NET"
Field Value
- string
otherUrl
protected string otherUrl
Field Value
- string
project
protected Project project
Field Value
- Project
Methods
addParameters(List<RequestEntry>)
protected abstract void addParameters(List<GiroCheckoutRequest.RequestEntry> parameters)
Parameters
parameters List<GiroCheckoutRequest.RequestEntry>
doPostRequest(string, string, string, string, int, int)
protected GiroCheckoutRequest.Response doPostRequest(string gcurl, string sdkVersion, string messageBody, string responseHeaderFieldName, int connectTimeout, int readTimeout)
Parameters
gcurl string
sdkVersion string
messageBody string
responseHeaderFieldName string
connectTimeout int
readTimeout int
Returns
- GiroCheckoutRequest.Response
executeRequest()
protected JObject executeRequest()
Returns
- JObject
getActualRequestUrl()
protected string getActualRequestUrl()
Returns
- string
getProject()
public Project getProject()
Returns
- Project
getRequestParameters()
protected GiroCheckoutRequest.RequestEntry[] getRequestParameters()
Returns
- RequestEntry[]
getRequestUrl()
protected abstract string getRequestUrl()
Returns
- string
isRCOK(int)
protected virtual bool isRCOK(int rc)
Parameters
rc int
Returns
- bool
log(string)
protected void log(string msg)
Parameters
msg string
log(string, Response)
protected void log(string requestMessageBody, GiroCheckoutRequest.Response response)
Parameters
requestMessageBody string
response GiroCheckoutRequest.Response
prepareRequestAndGetResponse()
protected GiroCheckoutRequest.Response prepareRequestAndGetResponse()
Returns
- GiroCheckoutRequest.Response
setOtherUrl(string)
public void setOtherUrl(string otherUrl)
Parameters
otherUrl string
throwGiroCheckoutException(string, Exception)
protected void throwGiroCheckoutException(string msg, Exception ex)
Parameters
msg string
ex Exception