Class GiroCheckoutRequest

Namespace
GiroSolution.GiroCheckout.Request
Assembly
GiroCheckout.dll

Abstrakte Basisklasse für alle Aufrufe in Richtung GiroCheckout

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

RESPONSE_HASH_HEADER

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, int, int)

protected GiroCheckoutRequest.Response doPostRequest(string gcurl, string messageBody, string responseHeaderFieldName, int connectTimeout, int readTimeout)

Parameters

gcurl 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